add img-src blob: to CSP, stop refetching blob
This commit is contained in:
1 parent
83c2df4390
commit
9839d48ca0
4 files changed
+8
-16
No files matched your search
@@ -7,7 +7,7 @@ const PUBLIC_STATUS_PAGE_DOCUMENT_PREFIX = "/status/public";
|
||||
// the status page on top of the global helmet policy, blocking external images,
|
||||
// fonts, and stylesheets from custom CSS while keeping the app's Google Fonts.
|
||||
const STATUS_PAGE_CSP = [
|
||||
"img-src 'self' data:",
|
||||
"img-src 'self' data: blob:",
|
||||
"font-src 'self' data: https://fonts.gstatic.com",
|
||||
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
|
||||
].join("; ");
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@ export const createApp = ({
|
||||
directives: {
|
||||
upgradeInsecureRequests: null,
|
||||
"script-src": ["'self'", "'unsafe-inline'", "'unsafe-eval'"],
|
||||
"img-src": ["'self'", "data:", "https://img.shields.io"],
|
||||
"img-src": ["'self'", "data:", "blob:", "https://img.shields.io"],
|
||||
"object-src": ["'none'"],
|
||||
"base-uri": ["'self'"],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user