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

Any locally hosted example suffers from CORS error #63

Open
anakaine opened this issue May 2, 2020 · 1 comment
Open

Any locally hosted example suffers from CORS error #63

anakaine opened this issue May 2, 2020 · 1 comment

Comments

@anakaine
Copy link

anakaine commented May 2, 2020

Because the shp is being accessed from file://, but the basemap is http/s, a CORS error is thrown when opening index.html locally.

This can be an issue if one os looking to deploy this as a simple shp viewer on a local system.

To replicate simply download a copy of the repo and open index.html in Chrome.

@krowvin
Copy link

krowvin commented Mar 30, 2022

You will need to setup a local server to serve these locally. You could use python or anything to do this on the local system.

There's not much the code repo can do for this it's on Chrome/other browsers serving local files. You can read more about it here

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