Skip to content

Commit c5de700

Browse files
committed
Add option for X-Frame Options #9
1 parent 98fee87 commit c5de700

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ nginx_drupal_upstream_backup_servers: ["unix:/var/run/php-fpm-bkp.sock"]
2929
nginx_drupal_sites: none
3030
nginx_drupal_http_pre_includes: []
3131
nginx_drupal_http_post_includes: []
32-
nginx_drupal_language_path_prefixes: []
32+
nginx_drupal_language_path_prefixes: []
33+
nginx_drupal_xframe_options: "SAMEORIGIN"

templates/nginx.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ http {
169169
#add_header X-Frame-Options SAMEORIGIN;
170170
## For sites accepting to be framed in any context comment the
171171
## line below.
172-
add_header X-Frame-Options DENY;
172+
add_header X-Frame-Options {{nginx_drupal_xframe_options}};
173173

174174
## Block MIME type sniffing on IE.
175175
add_header X-Content-Options nosniff;

0 commit comments

Comments
 (0)