Skip to content

Commit 447abea

Browse files
committed
Differeniate headers between how-to-play and the rest
1 parent 14c163e commit 447abea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cornucopia.owasp.org/script/headers.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ function main() {
2626
Permissions-Policy: accelerometer=(), autoplay=(), camera=(), document-domain=(), encrypted-media=(), fullscreen=(self "https://www.youtube.com/"), gyroscope=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), sync-xhr=(), usb=(), xr-spatial-tracking=(), geolocation=()
2727
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
2828
content-security-policy: default-src 'none'; frame-src 'self' https://www.youtube.com/; connect-src 'self'; img-src 'self' https://i.ytimg.com/vi/XXTPXozIHow/mqdefault.jpg; script-src 'self'; script-src-elem 'self'; style-src 'self'; style-src-elem 'self'
29+
30+
/how-to-play
31+
Permissions-Policy: accelerometer=(), autoplay=(), camera=(), document-domain=(), encrypted-media=(), fullscreen=(self "https://www.youtube.com/"), gyroscope=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), sync-xhr=(), usb=(), xr-spatial-tracking=(), geolocation=()
2932
`;
3033

3134
const headersFile = path.join(buildDir, '_headers');

0 commit comments

Comments
 (0)