This ensures that the header is added to all responses regardless of response code. More information: http://nginx.org/en/docs/http/ngx_http_headers_module.html
3 lines
58 B
Plaintext
3 lines
58 B
Plaintext
location / {
|
|
add_header X-Frame-Options "DENY" always;
|
|
} |