Connection to IFRAME is refused, which was working

%3CLINGO-SUB%20id%3D%22lingo-sub-3292936%22%20slang%3D%22en-US%22%3EConnection%20to%20IFRAME%20is%20refused%2C%20which%20was%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3292936%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20have%20an%20angular%20application%20where%20I%20have%20embedded%20the%20one%20drive%20url%20inside%20the%20IFRAME%20which%20I%20get%20as%20a%20response%20of%20Microsoft%20graph%20api%20-%20Preview.%20The%20response%20url%20for%20both%20read%20and%20write%20was%20working%20until%204%2F11%2F22%20and%20all%20of%20sudden%20the%20write%20url%20is%20not%20working%20but%20the%20connection%20between%20the%20read%20url%20is%20working%20as%20expected.%20When%20ever%20I%20call%20the%20write%20url%20I%20am%20getting%20the%20console%20error%20related%20to%20ancestor.%20Is%20anyone%20facing%20%2F%20faced%20the%20problem%2C%20if%20so%20enlighten%20me%20with%20the%20solutions%2F%20workaround%2F%20fix%20.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHow%20to%20add%20a%20domain%20into%20the%20CSP%20list%20%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3292936%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3301472%22%20slang%3D%22en-US%22%3ERe%3A%20Connection%20to%20IFRAME%20is%20refused%2C%20which%20was%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3301472%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1371340%22%20target%3D%22_blank%22%3E%40Aribalak%3C%2FA%3E%26nbsp%3BI'm%20getting%20the%20same%20error.%20I'm%20calling%20the%20O365%20drive-item%20preview%20API%20endpoint%2C%20and%20opening%20the%20getURL%20in%20an%20iframe.%20Works%20fine%20without%20allowEdit%3Atrue%2C%20but%20in%20edit%20mode%20it%20gives%20CSP%20errors.%20It%20use%20to%20work%20fine.%20Is%20this%20part%20of%20the%20deprecation%20of%20allowEdit%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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 .

How to add a domain into the CSP list ?

1 Reply

@Aribalak I'm getting the same error. I'm calling the O365 drive-item preview API endpoint, and opening the getURL in an iframe. Works fine without allowEdit:true, but in edit mode it gives CSP errors. It use to work fine. Is this part of the deprecation of allowEdit?