Skip to content

Commit

Permalink
Fix #2503. Removed hardcoded URL. use CORS (#2504)
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz authored Jan 10, 2018
1 parent 7196f16 commit c32261b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion web/client/examples/featuregrid/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
]
},
"printUrl": "https://demo.geo-solutions.it/geoserver/pdf/info.json",
"proxyUrl": "/mapstore/proxy/?url=",
"proxyUrl": {
"url": "/proxy/?url=",
"useCORS": ["http://demo.geo-solutions.it:80/geoserver", "http://demo.geo-solutions.it/geoserver", "https://demo.geo-solutions.it:443/geoserver", "https://demo.geo-solutions.it/geoserver"]
},
"translationsPath": "../../translations"
}
3 changes: 1 addition & 2 deletions web/client/examples/featuregrid/stores/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ module.exports = (plugins) => {
.switchMap((layer) => Rx.Observable.of(
clearChanges(),
browseData({
...getLayerFromId(store.getState(), layer.id),
url: 'http://demo.geo-solutions.it:80/geoserver/wfs'
...getLayerFromId(store.getState(), layer.id)
})
))
}, plugins);
Expand Down

0 comments on commit c32261b

Please sign in to comment.