Add CSP header in Nginx conf
This commit is contained in:
parent
bd3966bcf3
commit
f425570235
1 changed files with 2 additions and 0 deletions
|
@ -18,9 +18,11 @@ http {
|
|||
server www;
|
||||
}
|
||||
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-Frame-Options DENY;
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header Content-Security-Policy "default-src 'self'; script-src https://code.jquery.com https://cdn.jsdelivr.net https://www.google-analytics.com https://www.googletagmanager.com 'self'; style-src https://fonts.googleapis.com https://maxcdn.bootstrapcdn.com 'self'; font-src https://fonts.gstatic.com https://maxcdn.bootstrapcdn.com https://fonts.googleapis.com; object-src 'none'";
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
|
Loading…
Reference in a new issue