Fix CSP-ENFORCE: enforce CSP, X-Frame-Options DENY, tighten signup rate-limit#230
Open
bmoss2015 wants to merge 1 commit into
Open
Fix CSP-ENFORCE: enforce CSP, X-Frame-Options DENY, tighten signup rate-limit#230bmoss2015 wants to merge 1 commit into
bmoss2015 wants to merge 1 commit into
Conversation
…ate-limit - next.config.ts: switch Content-Security-Policy from Report-Only to enforced. Drop unsafe-eval. Add Sentry browser SDK, PostHog (us.i.posthog.com / us-assets), Lob API, Resend API, and cdnjs to the allowlist. frame-ancestors 'none' + X-Frame-Options DENY (was SAMEORIGIN); the portal should never be iframed. Add upgrade-insecure-requests. Inline scripts still allowed (Next 16 RSC bootstrap), nonce-based pass is a future hardening step. - signup/_actions.ts: signup attempt cap 10/min -> 5/min per pre-launch rate-limit spec. Login (10/min), reset (10/min), stripe webhook (100/min) unchanged. - CHANGELOG.md + pending-living-doc-updates.txt updated.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
unsafe-eval; adds Sentry, PostHog, Lob, Resend, cdnjs to allowlistframe-ancestors 'none'+X-Frame-Options: DENY(was SAMEORIGIN)upgrade-insecure-requestsInline scripts still allowed because Next 16 RSC bootstrap requires them; nonce migration is a future hardening pass.
Test plan