forked from MapComplete/MapComplete
Fix: generateCSP
This commit is contained in:
parent
79e40d0fee
commit
a612d4e1c2
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ async function generateCsp(
|
|||
"default-src": "'self'",
|
||||
"child-src": "'self' blob: ",
|
||||
"img-src": "* data:", // maplibre depends on 'data:' to load
|
||||
"connect-src": onnectSrc.join(" "),
|
||||
"connect-src": connectSrc.join(" "),
|
||||
"report-to": "https://report.mapcomplete.org/csp",
|
||||
"worker-src": "'self' blob:", // Vite somehow loads the worker via a 'blob'
|
||||
"style-src": "'self' 'unsafe-inline'", // unsafe-inline is needed to change the default background pin colours
|
||||
|
|
Loading…
Reference in a new issue