mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
Add the X-Content-Type-Options nosniff header
This commit is contained in:
@@ -22,6 +22,7 @@ server {
|
|||||||
|
|
||||||
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
|
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
|
||||||
add_header Strict-Transport-Security max-age=15768000;
|
add_header Strict-Transport-Security max-age=15768000;
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
|
||||||
location /static/ {
|
location /static/ {
|
||||||
root /awx_devel;
|
root /awx_devel;
|
||||||
@@ -84,6 +85,7 @@ server {
|
|||||||
|
|
||||||
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
|
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
|
||||||
add_header Strict-Transport-Security max-age=15768000;
|
add_header Strict-Transport-Security max-age=15768000;
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
|
||||||
location /static/ {
|
location /static/ {
|
||||||
root /awx_devel;
|
root /awx_devel;
|
||||||
|
|||||||
Reference in New Issue
Block a user