We used to have an iframe that displays a page from another server inside a Confluence page, and it worked without any issue.
We moved the hosting page to another server and the iframe no longer shows, we thought we need to whitelist the new server or something, but cannot find the settings mentioned here:
How can we re-configure this iframe to show the desired page?
Thanks
Hi @Motti Tadmor,
This issue is most likely related to the same-origin policy. My gut feeling is that the old server was configured differently - e.g. CORS was enabled / setup.
You can check if this is the issue by checking the network tab of your browsers console. You should see the iframe request failing with a reason. If it is something with same-origin or CORS you should follow up with the articles below to understand the issue in more detail and eventually fix it.
- https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
- https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
Best, Tobias
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.