Skip to content

Instantly share code, notes, and snippets.

@mikkame
Created August 2, 2018 01:10
Show Gist options
  • Select an option

  • Save mikkame/32cf50fb6a6279318d088c8f5b505aa4 to your computer and use it in GitHub Desktop.

Select an option

Save mikkame/32cf50fb6a6279318d088c8f5b505aa4 to your computer and use it in GitHub Desktop.
x-frame config example
<?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