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

CORS issue using different local ports #5

Open
a1an77 opened this issue Aug 4, 2015 · 1 comment
Open

CORS issue using different local ports #5

a1an77 opened this issue Aug 4, 2015 · 1 comment

Comments

@a1an77
Copy link

a1an77 commented Aug 4, 2015

Just tried on a local geoserver instance and I get this CORS issue. Using such address with WMS TileLayers works without problems:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/geoserver/wfs?. This can be fixed by moving the resource to the same domain or enabling CORS.

Since the web content is on port 80, I need to specify the full address. Which seem to work fine with other layers. Any idea ho to solve or circumvent this issue at the plugin level (i.e. without enabling CORS?).

Request fails and I get the message at line 109 & 110 of current dist as output.

@stuporglue
Copy link
Contributor

Is the web server on port localhost:80? If so, you can set up a proxy.

The browser will send requests to the web server which will send the requests on to GeoServer.

If you're on Apache, you'd want the ProxyPass and ProxyPassReverse parameters.

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