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 Error When Loading OPNVKarte Basemap #93

Open
arjxn-py opened this issue Aug 18, 2024 · 4 comments
Open

CORS Error When Loading OPNVKarte Basemap #93

arjxn-py opened this issue Aug 18, 2024 · 4 comments

Comments

@arjxn-py
Copy link
Contributor

When attempting to load the OPNVKarte basemap in JupyterGIS, a CORS (Cross-Origin Resource Sharing) error is encountered, preventing the tiles from being fetched and displayed.

Access to fetch at 'https://tileserver.memomaps.de/tilegen/4/11/7.png' from origin 'http://localhost:8888' 
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

GET https://tileserver.memomaps.de/tilegen/4/11/7.png net::ERR_FAILED 200 (OK)

@arjxn-py
Copy link
Contributor Author

Apologies in advance as I know that the project is WIP but one more reason to open this issue is that I'm facing the same problem in arjxn-py/jupytergis#1, see this commit in which i just did a hacky workaround but definitely not for production.

@arjxn-py
Copy link
Contributor Author

ProxyHandler defined in #104 should come in handy to fix this as well. But since it'd still not work with JupyterLite, would we want to also add a note or warning if we decide to use that upon agreement?

@martinRenou
Copy link
Member

I guess that in the case of jupyterlite we can rely on cors-anywhere for now? We could think of making our own deployment of a cors-anywhere-like server

@arjxn-py
Copy link
Contributor Author

I guess that in the case of jupyterlite we can rely on cors-anywhere for now? We could think of making our own deployment of a cors-anywhere-like server

Oh yes, this sounds promising. I didn't actually thought about serving that ourselves but it's definitely can be explored and I would be up for it.

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