Welcome! Log In Create A New Profile

Advanced

How to restrict an iframe to a specific domain in Nginx configuration

Posted by Vignesh Kumar 
How to restrict an iframe to a specific domain in Nginx configuration
August 16, 2017 03:25AM
Hello,

How to allow specified domain alone to do iframe.

I know we can do this using ALLOW-FROM in X-Frame-Options header..

"add_header X-Frame-Options "ALLOW-FROM https://example.com/";

But it is not supported on Chrome..

Is there any other ways to do that in nginx ?..

Thanks in Advance.!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 8 on December 15, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready