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 detect cors errors #103

Open
barbalex opened this issue Sep 14, 2019 · 0 comments
Open

how to detect cors errors #103

barbalex opened this issue Sep 14, 2019 · 0 comments

Comments

@barbalex
Copy link

barbalex commented Sep 14, 2019

Lots of people are running into the issue with cors preventing printing.

Is there a way to detect that network calls for maps return cors errors?

That would be great because the ui could then inform the user and maybe the user can choose a different background map that does send cors headers.

Also: when the option hideControlContainer is set to true the menus disappear and probably because of the error never reappear. Maybe I can find something to circumvent that behaviour if cors errors can be detected.

@barbalex barbalex changed the title detect cors errors how to detect cors errors Sep 14, 2019
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

1 participant