You can use PHP or Nginx to add x-frame-options header to control Frame permissions
The x-frame-options has three optional values:
Deny: The browser refuses the current page to load any frame page
The address of the Sameorigin:frame page can only be a page under a homologous domain name
Allow-from: Page address to allow frame loading
PHP Code:
Copy the Code code as follows: Header (' X-frame-options:deny ');
Nginx Configuration:
Copy the Code code as follows: Add_header x-frame-options Sameorigin
Can be added to the locaion.
Copy the Code code as follows: Location/
{
Add_header x-frame-options Sameorigin
}
Apache Configuration:
Copy the Code code as follows:
Header always append x-frame-options sameorigin
A whiteboard is displayed on pages that are not allowed to frame after use.
Reference:
Https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options?redirectlocale=en-US&redirectslug=The_ X-frame-options_response_header
http://www.bkjia.com/PHPjc/781033.html www.bkjia.com true http://www.bkjia.com/PHPjc/781033.html techarticle you can use PHP or Nginx add x-frame-options header to control Frame permissions X-frame-options has three optional values: Deny: The browser rejects the current page load any Frame page Sameori ...