Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(error): strict security headers #2907

Merged
merged 3 commits into from
Nov 27, 2024
Merged

fix(error): strict security headers #2907

merged 3 commits into from
Nov 27, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Nov 27, 2024

#2591 prevented possible security issues when user input could be included in the stack trace.

This PR increases the security of the error page by using secure headers making sure no js code can be executed (specially for production), it cannot have mixed mimes, being iframed or report referer to external resources in case anything goes invalidated in "error message".

@pi0 pi0 self-assigned this Nov 27, 2024
Copy link

cloudflare-workers-and-pages bot commented Nov 27, 2024

Deploying nitrojs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a8d8bc9
Status: ✅  Deploy successful!
Preview URL: https://512aafbc.nitrojs.pages.dev
Branch Preview URL: https://fix-error-csp.nitrojs.pages.dev

View logs

@pi0 pi0 merged commit 65c444b into v2 Nov 27, 2024
5 checks passed
@pi0 pi0 deleted the fix/error-csp branch November 27, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant