Created
August 2, 2018 01:10
-
-
Save mikkame/32cf50fb6a6279318d088c8f5b505aa4 to your computer and use it in GitHub Desktop.
x-frame config example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| return [ | |
| 'allow' => [ | |
| '/iframe-contents', // "http://example.com/iframe-content" can embeded other website | |
| '/iframe-contents/*' // You can use wildcard | |
| ], | |
| 'sameorigin' => [ | |
| '/my-iframe-contents', // "http://example.com/my-iframecontents" can embeded same origin website | |
| ], | |
| ]; | |
| // This plugin give DENY for "X-FRAME-OPTIONS" default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment