Skip to content

Commit 6dea86e

Browse files
committed
Merge branch 'under-development' into staging
2 parents 7dd9b16 + a0f25dc commit 6dea86e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/server/DocsEndpointHandler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ export class DocsEndpointHandler {
640640
headers: {
641641
'Content-Type': 'text/html; charset=utf-8',
642642
'Cache-Control': 'public, max-age=3600',
643+
'Content-Security-Policy': "default-src 'self'; style-src 'self' https://cdn.jsdelivr.net 'unsafe-inline'; script-src 'self'; img-src 'self' data:; font-src 'self' data:;",
643644
},
644645
});
645646
}
@@ -671,6 +672,7 @@ export class DocsEndpointHandler {
671672
status,
672673
headers: {
673674
'Content-Type': 'text/html; charset=utf-8',
675+
'Content-Security-Policy': "default-src 'self'; style-src 'self' https://cdn.jsdelivr.net 'unsafe-inline'; script-src 'self'; img-src 'self' data:; font-src 'self' data:;",
674676
},
675677
});
676678
}

0 commit comments

Comments
 (0)