Skip to content

Commit ab11979

Browse files
committed
Fix CSP: add 'self' to frame-src so the /play page can embed the game (07-04 audit dropped it, blocking Sprite Cannon)
1 parent 29fa0ae commit ab11979

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/_headers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Referrer-Policy: strict-origin-when-cross-origin
55
Permissions-Policy: camera=(), microphone=(), geolocation=(), browsing-topics=()
66
Cross-Origin-Opener-Policy: same-origin
7-
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com https://browser.sentry-cdn.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https:; media-src 'self'; connect-src 'self' https://static.cloudflareinsights.com https://cloudflareinsights.com https://*.ingest.sentry.io https://spritecannon-lb.maxxtopia.workers.dev https://spritecannon-codes.maxxtopia.workers.dev; frame-src https://dropmaxxer.pages.dev; frame-ancestors 'self'; base-uri 'self'; form-action 'self'; object-src 'none'; upgrade-insecure-requests
7+
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com https://browser.sentry-cdn.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https:; media-src 'self'; connect-src 'self' https://static.cloudflareinsights.com https://cloudflareinsights.com https://*.ingest.sentry.io https://spritecannon-lb.maxxtopia.workers.dev https://spritecannon-codes.maxxtopia.workers.dev; frame-src 'self' https://dropmaxxer.pages.dev; frame-ancestors 'self'; base-uri 'self'; form-action 'self'; object-src 'none'; upgrade-insecure-requests
88

99
# Service workers must never be HTTP-cached, or the browser keeps the OLD sw.js (default 4h) and
1010
# the PWA never picks up new builds. no-cache = always revalidate -> updates propagate immediately.

0 commit comments

Comments
 (0)