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

Add required CSP directives #101

Open
19Gerhard85 opened this issue Jul 18, 2024 · 1 comment
Open

Add required CSP directives #101

19Gerhard85 opened this issue Jul 18, 2024 · 1 comment

Comments

@19Gerhard85
Copy link

Could you please provide the required CSP directives to make the map working with a strict CSP ruleset?

@jpett
Copy link

jpett commented Oct 11, 2024

We also have the problem that the map won't load with a strict CSP in place. The problem seems to be that maplibre tries to create a worker with a blob WORKER_URL ("blob:http://localhost:4200/{randomly-generated-guid}"). Unfortunately we haven't found a way to change the WORKER_URL. There is a setWorkerUrl function exported by the @maptiler/sdk, but it seems that the worker is created before any of our initialisation code is executed. Any hints on how to make this work would be greatly appreciated, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants