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

Add security headers #537

Merged
merged 2 commits into from Jan 29, 2019
Merged

Add security headers #537

merged 2 commits into from Jan 29, 2019

Conversation

degeri
Copy link
Member

@degeri degeri commented Jan 29, 2019

Adds the following security headers.

add_header X-Content-Type-Options "nosniff" always;  ==> Prevents "mime" based attacks. 
add_header X-Frame-Options DENY always;   ==> Disable iframe of the website. 
add_header X-XSS-Protection "1; mode=block" always;  ==> Enable XSS protection. 
add_header Referrer-Policy "no-referrer" always; ==> Disable referrer from being shared on any request. 

"always" forces these headers for all response codes.

http://nginx.org/en/docs/http/ngx_http_headers_module.html

Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@dajohi dajohi merged commit b635e8b into decred:master Jan 29, 2019
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.

None yet

2 participants