Share via

Connection to IFRAME is refused, which was working..

Anonymous
2022-04-12T17:49:06+00:00

I have an angular application where I have embedded the one drive url inside the IFRAME which I get as a response of Microsoft graph api - Preview. The response url for both read and write was working until 4/11/22 and all of sudden the write url is not working but the connection between the read url is working as expected. When ever I call the write url I am getting the console error related to ancestor. Is anyone facing / faced the problem, if so enlighten me with the solutions/ workaround/ fix .

Microsoft 365 and Office | OneDrive | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2022-04-15T15:06:07+00:00

    Dear Cliff,

    Thanks for the input. We tried earlier and it helped us a month ago, over a week time the issue got resolved without the plugin and updating any changes from our side and now the same issue is happening.

    Is there anyway that we can control the behavior? More over would like to understand the reason for the inconsistency behavior.

    We are passing the url into Iframe using src element.

    6 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2022-04-16T08:22:02+00:00

    Dear Aribala,

    Thanks for your updates.

    Based on your description, the issue's cause is that the X-Frame Options which is a response header prevents the browser from rendering the iframe conetent in your environment. You may set the X-Frame Options in the web-config of the site which is to be loaded in an iframe to work around the issue manually.

    For your reference: How to add HTTP headers ‘X-Frame-Options’ on iframe ?

    ***Disclaimer:***Microsoft provides no assurances and/or warranties, implied or otherwise, and is not responsible for the information you receive from the third-party linked sites or any support related to technology.

    I think that the easiest way to work around the issue may be to add the Ignore X-Frame headers extension on the Chrome browser which doesn't need some webpage development knowledge and set the settings automatically. It is friendly to users.

    I suggest you use it again to see and let us know the result.

    Thanks for your understanding and have a nice day!

    Cliff

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2022-04-12T22:46:31+00:00

    Dear Aribala,

    If the iframe code is correct, some connection issue may be related to the X-Frame-Options headers on the web page, I suggest you install the Ignore X-Frame headers extension on the Chrome browser to see the result first.

    ***Disclaimer:***Microsoft provides no assurances and/or warranties, implied or otherwise, and is not responsible for the information you receive from the third-party linked sites or any support related to technology

    Meanwhile, to fully confirm the situation in your environment, I'd like you to list the steps about how you use the iframe code and upload some screenshots showing the issue as well.

    Note: Remove any private information before uploading the screenshots.

    Thanks for your effort and time.

    Cliff

    3 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2022-04-19T07:48:23+00:00

    Dear Aribala,

    Thanks for your updates.

    Here is an article for your reference.

    How to add HTTP headers ‘X-Frame-Options’ on iframe ?

    ***Disclaimer:***Microsoft provides no assurances and/or warranties, implied or otherwise, and is not responsible for the information you receive from the third-party linked sites or any support related to technology.

    As setting the X-Frame Options is a web page development related issue and we have a specific support channel coping with the web page development related issues and questions, I kindly suggest you post a new thread on the Web Page Support Community for expert help as well. The engineers there may provide some further suggestions based on your iframe environment.

    Thanks fo ryour understanding and have a nice day!

    Cliff

    2 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2022-04-18T14:49:43+00:00

    Dear Cliff,

    We are able to connect using the extension but the recommendation not to use any extension from Chrome and moreover the access can happen from edge browser. Can you please throw some more insight how to enable the option to access the url inside Iframe. The account we are using is an organization type and all the services that are enabled through subscription mode.

    2 people found this answer helpful.
    0 comments No comments