Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 52c2b8c

Browse files
committed
Improve security by appending security headers
1 parent 9a0aac2 commit 52c2b8c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

public/.htaccess

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
2323
</IfModule>
2424

25+
<IfModule mod_headers.c>
26+
Header set X-XSS-Protection "1; mode=block"
27+
Header set Content-Security-Policy "default-src 'none'; font-src 'self'; script-src 'self' 'sha256-Hl1Fig24nuDW1/2tARfn+Um+nSLNb9p6LNuXk8kwgeU=' https://www.gstatic.com/recaptcha/ https://code.jquery.com/jquery-2.2.3.min.js https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js https://www.google.com/recaptcha/; connect-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline'; frame-src https://www.google.com/recaptcha/"
28+
Header set X-Frame-Options "DENY"
29+
Header set X-Content-Type-Options "nosniff"
30+
</IfModule>
31+
2532
# ----------------------------------------------------------------------
2633
# | Expires headers |
2734
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)