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

How to enable CORS? #3

Open
macfikry opened this issue May 11, 2020 · 1 comment
Open

How to enable CORS? #3

macfikry opened this issue May 11, 2020 · 1 comment

Comments

@macfikry
Copy link

macfikry commented May 11, 2020

How to enable CORS? It says
Access to image at 'http://localhost:8182/mapserv.exe?map=/map/21.map&mode=map&layers=all&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=ind_provinces&CRS=EPSG%3A3857&STYLES=&WIDTH=1561&HEIGHT=668&BBOX=10816145.25046558%2C-144771.73157212383%2C11770079.363464583%2C263401.9994707174' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@m2rt
Copy link

m2rt commented Sep 5, 2022

Quite old but if anybody ends up here, then add add_header 'Access-Control-Allow-Origin' '*'; to nginx configuration.

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