mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 15:27:45 +03:00
Update CSP to allow wasm compilation in web repl
This commit is contained in:
parent
3938dd476d
commit
70b739bbfc
@ -14,7 +14,10 @@
|
||||
[headers.values]
|
||||
X-Frame-Options = "DENY"
|
||||
X-XSS-Protection = "1; mode=block"
|
||||
Content-Security-Policy = "default-src 'self'; img-src *;"
|
||||
# unsafe-eval is needed for wasm compilation in the repl to work on Safari and Chrome;
|
||||
# otherwise they block it.
|
||||
# TODO figure out how to tell Netlify to apply that policy only to the repl, not to everything.
|
||||
Content-Security-Policy = "default-src 'self'; img-src *; script-src 'self' 'unsafe-eval';"
|
||||
X-Content-Type-Options = "nosniff"
|
||||
|
||||
# Redirect roc-lang.org/authors to the AUTHORS file in this repo
|
||||
|
Loading…
Reference in New Issue
Block a user