A
A
Artem2016-09-08 18:15:28
Nginx
Artem, 2016-09-08 18:15:28

How to override the X-Frame-Options header?

The /etc/nginx/nginx.conf file has:
add_header X-Frame-Options SAMEORIGIN;
How to override X-Frame-Options header to some sites in bx/site_enabled/*.conf files?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2016-09-14
@artemky

It turned out that for https sites, you need to specify the
add_header X-Frame-Options "ALLOW-FROM https://site2/ " command;
in bx_ext_ssl_site1.conf files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question