Skip to content

Instantly share code, notes, and snippets.

@m4tlch
Created October 24, 2018 13:28
Show Gist options
  • Save m4tlch/e31d213dc9b42eeba9d741f5330ed437 to your computer and use it in GitHub Desktop.
Save m4tlch/e31d213dc9b42eeba9d741f5330ed437 to your computer and use it in GitHub Desktop.
.htaccess with cross-origin settings for amocrm.ru
<IfModule mod_headers.c>
Header set Content-Security-Policy "frame-ancestors http://*.amocrm.ru/ 'self';"
# For IE 11 and below
Header set X-Frame-Options SAMEORIGIN
Header append X-Frame-Options "ALLOW-FROM http://*.amocrm.ru/"
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment