8000 http: Add Secure Headers by mastercactapus · Pull Request #4071 · target/goalert · GitHub
[go: up one dir, main page]

Skip to content

http: Add Secure Headers - #4071

Merged
ethan-haynes merged 20 commits into
masterfrom
header-security
Nov 25, 2024
Merged

ethan-haynes merged 20 commits into
masterfrom
header-security

Conversation

@mastercactapus
@mastercactapus mastercactapus commented Sep 19, 2024 •
Copy link
Copy Markdown
Member

Description:
This PR adds secure headers to responses, using a nonce value for CSP.

For now, this is opt-in via --enable-secure-headers with the intention for the future to make it an opt-out.

Headers:

Name Value
Referrer-Policy same-origin
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection 1; mode=block
Content-Security-Policy default-src 'self'; style-src 'self' <nonce value>; font-src 'self' data:; object-src 'none'; media-src 'none'; img-src 'self' data: https://gravatar.com/avatar/; script-src 'self' <nonce value>

@mastercactapus
mastercactapus marked this pull request as ready for review October 10, 2024 19:03
@mastercactapus
Copy link
Copy Markdown
Member Author

note: this needs to be tested with a caching reverse-proxy, it seems the index page headers may need to be adjusted

@ethan-haynes
ethan-haynes merged commit bb20a57 into master Nov 25, 2024
@ethan-haynes
ethan-haynes deleted the header-security branch November 25, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0