Quantcast
Channel: Active questions tagged header - Stack Overflow
Viewing all articles
Browse latest Browse all 701

Allow Content-Security-Policy frame-ancestors by origin in Apache

$
0
0

I want to allow iframe for site only on a specific sites

I cat to make this:

Header set Content-Security-Policy "frame-ancestors 'self' http://myorigin.com"

But it will be shown in browser response header.I try to hide it from headers:

<If "%{HTTP_HOST} != 'myorigin.com'">    Header set Content-Security-Policy "frame-ancestors 'self'"</If>

But it's not workingCan someone help please?


Viewing all articles
Browse latest Browse all 701

Trending Articles