mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
Nginx: Specify X-Frame-Options "DENY" header
Adding the X-Frame-Options "DENY"; header to avoid possible clickjacking attack. More info of the why available here: https://www.owasp.org/index.php/Testing_for_Clickjacking_(OTG-CLIENT-009) Signed-off-by: Yanis Guenane <yguenane@redhat.com>
This commit is contained in:
parent
d0af952685
commit
44c48d1d66
@ -44,6 +44,9 @@ http {
|
||||
|
||||
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
|
||||
add_header Strict-Transport-Security max-age=15768000;
|
||||
|
||||
# Protect against click-jacking https://www.owasp.org/index.php/Testing_for_Clickjacking_(OTG-CLIENT-009)
|
||||
add_header X-Frame-Options "DENY";
|
||||
|
||||
location /nginx_status {
|
||||
stub_status on;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user