X-Frame-Options on apache

前端 未结 5 1347
猫巷女王i
猫巷女王i 2020-12-13 06:23

I am trying to allow some particular domain to access my site via iframe

Header set X-Frame-Options ALLOW-FROM https://www.that-site.com

I

5条回答
  •  情话喂你
    2020-12-13 07:01

    This worked for me on all browsers:

    1. Created one page with all my javascript
    2. Created a 2nd page on the same server and embedded the first page using the object tag.
    3. On my third party site I used the Object tag to embed the 2nd page.
    4. Created a .htaccess file on the original server in the public_html folder and put Header unset X-Frame-Options in it.

提交回复
热议问题