mirror of
https://github.com/placeholder-soft/web.git
synced 2026-04-28 19:05:28 +08:00
Allow blob: in CSP so image upload previews work (#915)
This commit is contained in:
@@ -28,7 +28,7 @@ export function middleware(req: NextRequest) {
|
||||
|
||||
// Open image src
|
||||
const cspHeader = `
|
||||
img-src 'self' https: data:;
|
||||
img-src 'self' https: data: blob:;
|
||||
media-src 'self' https: data: blob:;
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user