cannot set proxy on node.js
问题 I have node.js 4.1.1 and express.js 4.8.5 on port 5550. I also have Geoserver 2.8.0 on port 8080. Both servers are on the same laptop. An app on node wants to access some map data from Geoserver and these are the details on openlayers source: new ol.source.TileWMS({ url: 'http://localhost:8080/geoserver/mymap/wms?', crossOrigin: 'anonymous', // I also tried crossOrigin: 'localhost:8080/' and crossOrigin: 'localhost:5550/' but nothing params: {'LAYERS': 'mymap:layer, mymap:anotherLayer, FORMAT