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

TerriaMap produces a blank screen on starting-up unless CSP policy unsafe-eval is on #489

Open
t83714 opened this issue Oct 14, 2020 · 0 comments
Assignees
Labels

Comments

@t83714
Copy link
Member

t83714 commented Oct 14, 2020

TerriaMap will produce a blank screen unless CSP policy unsafe-eval is on

When the following CSP policy is add to response header:

content-security-policy: script-src 'self' 'unsafe-inline' browser-update.org blob:; object-src 'none'; worker-src 'self' blob:

TerriaMap will show a blank screen on starting-up and report the following on the console:
image

The error doesn't seem triggered by any JSONP calls. Instead, it seems it triggered by the package buffer. I can't find any things other than webpack or terria-server depends on it --- which should not be part of the frontend bundle.

How to reproduce

@t83714 t83714 added the bug label Oct 14, 2020
@t83714 t83714 changed the title TerriaMap will produce a blank screen unless CSP policy unsafe-eval is on TerriaMap produces a blank screen on starting-up unless CSP policy unsafe-eval is on Oct 14, 2020
@tephenavies tephenavies self-assigned this Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants