skip to Main Content

Domain A site(aaa.example.com) have iframe of B site (bbb.example.com)
Recently, I moved the server from other services to AWS.
And A site previous B site and moved B site are all different location.
Example like moved B in AWS, A site in Digital ocean, and previous B site is other…
Before moving the server, it is works in IE. But suddenly show "this content cannot be displayed in a frame" Nginx setting and etc all same.
Any idea why like this and how to fix it?
Is it a firework problem?
Please help me…
Oh, all https

2

Answers


  1. Once you move one site it to another domain you start dealing with cross origin issues. You can take a look at https://medium.com/@baphemot/understanding-cors-18ad6b478e2b for more details on how to potentially deal with it.

    Here is another stack overflow entry on the topic: how to resolve iframe cross domain issue

    Login or Signup to reply.
  2. For testing purposes, try to add <meta http-equiv="X-Frame-Options" content="allow"> to the webpage that you want to show in an Iframe.
    See whether it works.

    If the issue still persists then try to add add_header X-Frame-Options ALLOW-FROM "url"; to your Nginx server can help to fix this issue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search