Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another WMS #2

Open
arnaufp opened this issue Feb 20, 2015 · 1 comment
Open

Another WMS #2

arnaufp opened this issue Feb 20, 2015 · 1 comment

Comments

@arnaufp
Copy link

arnaufp commented Feb 20, 2015

Hi,
thanks for this!
I followed all the steps here https://astuntechnology.github.io/osgis-ol3-leaflet/index.html
It is very well documented and clearly explained.
I tried to change the code in order to use another WMS. I can visualize it but I get an error when I request the GetFeatureInfo.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
What should I do in order to get this to work?
thanks

@walkermatt
Copy link
Member

Hi,

The services used by the workshop all have CORS enabled. Details of CORS and how to enable it here: http://enable-cors.org.

If you don't have control of the WMS then a common option is to set up a proxy script on your server that you send data requests via.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants