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: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready