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

feat: add secure middleware, move CSP to header #442

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Aug 11, 2024

CSP is moved to the header which is more secure (e.g. Alby Hub can no longer be loaded in an iframe).

In development, we use the vite server, so a dev CSP is injected in this case. We need to keep them in sync to ensure you don't fix something in development, only to realize it's still broken in production.

@rolznz rolznz requested review from bumi and reneaaron August 11, 2024 06:36
@rolznz rolznz merged commit 49a1d52 into master Aug 12, 2024
8 checks passed
@rolznz rolznz deleted the feat/secure-middleware branch August 12, 2024 05:42
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