Skip to content

Conversation

@macbre
Copy link
Owner

@macbre macbre commented Sep 27, 2021

Inspired by https://github.com/bunkerity/bunkerized-nginx/blob/33e0ffd5b1058fb6e702110f9240dd4703e075a3/misc/variables.env#L106 (resolves #63)

Headers set by default

$ curl 0:8888 -I
HTTP/1.1 200 OK
(...)
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Security-Policy: object-src 'none'; frame-ancestors 'self'; form-action 'self'; block-all-mixed-content; sandbox allow-forms allow-same-origin allow-scripts allow-popups allow-downloads; base-uri 'self';
(...)

@macbre macbre enabled auto-merge September 27, 2021 09:51
@macbre macbre merged commit 44b4250 into master Sep 27, 2021
@macbre macbre deleted the set-security-headers branch September 27, 2021 09:52
macbre added a commit to macbre/phantomas that referenced this pull request Jan 7, 2022
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.

Do not expose server details

2 participants