Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Channel Integration Framework- Add Attribute to Iframe

(0) ShareShare
ReportReport
Posted on by 5

I'm attempting to use the CIF framework to integrate a cloud telephony telephony system with Dynamics365.  The telephone system's login procedure is:

  1. User On load it opens a new tab
  2. User enters the credentials and presses login.
  3. It automatically closes the new tab and logs the user into the telephone system after a successful authentication. 

The login process works fine in standalone mode.

After adding the telephony system in Dynamics365 via CIF, I can see that the widget is loaded in CRM, and it tries to start the login procedure as mentioned above. However, when user enter the credentials on new tab and click on the login button, page remain stuck on same tab. I notice the following problem when I look at the console logs for my browser. 

WarpDriveConsole-14.js:1938 Unsafe attempt to initiate navigation for frame with URL 'https://oblab2.awsapps.com/auth/?client_id=06919f4fd8ed324e&redirect_uri=https://oblab2.my.connect.aws/auth/code&state=AQICAHiU8BWms0CHU0327QagmWN-j4zcf_2dRVNA6mBq8f3xDgFAq69LucKZxf96eaflDNebAAAApjCBowYJKoZIhvcNAQcGoIGVMIGSAgEAMIGMBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDLuajNT43rw22WKp2wIBEIBfqDHJYUQJpvPdMx0gDHXKTml_ULKa2iVacbZyosfiIT2oMrEv8m3tIzTDIsiBzVrCpBwrRR9uRq5uV-qFo-ABzF0Ju_XSBX5Qh42lNLmnnCYYe-enN5OBjyKkW5ct74Y=' from frame with URL 'https://oblab2.awsapps.com/auth/?client_id=06919f4fd8ed324e&redirect_uri=https://oblab2.my.connect.aws/auth/code&state=AQICAHiU8BWms0CHU0327QagmWN-j4zcf_2dRVNA6mBq8f3xDgFAq69LucKZxf96eaflDNebAAAApjCBowYJKoZIhvcNAQcGoIGVMIGSAgEAMIGMBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDLuajNT43rw22WKp2wIBEIBfqDHJYUQJpvPdMx0gDHXKTml_ULKa2iVacbZyosfiIT2oMrEv8m3tIzTDIsiBzVrCpBwrRR9uRq5uV-qFo-ABzF0Ju_XSBX5Qh42lNLmnnCYYe-enN5OBjyKkW5ct74Y='. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.

As @ WarpDriveConsole-14.js:1938
WarpDriveConsole-14.js:1938 TypeError: Cannot read properties of undefined (reading 'indexOf')
    at As (WarpDriveConsole-14.js:1938:129)
    at Ho (WarpDriveConsole-14.js:2056:438)
    at Io.Ko [as Jc] (WarpDriveConsole-14.js:2092:24955)
    at _rb.bsb [as Pc] (WarpDriveConsole-14.js:2092:69659)
    at X_ (WarpDriveConsole-14.js:1513:79)
    at i0.j0 [as de] (WarpDriveConsole-14.js:2092:59694)
    at XMLHttpRequest. (WarpDriveConsole-14.js:1424:65)
    at qT (WarpDriveConsole-0.js:299:29)
    at tT (WarpDriveConsole-0.js:416:44)
    at XMLHttpRequest.eval (WarpDriveConsole-0.js:528:50)

I quickly discovered that Google recently revised its iframe restrictions, and that in order to allow top window navigation, the `allow-top-navigation` or `allow-top-navigation-by-user-activation` flag now needs to be set in the Iframe's `sandbox` attribute.  I was wondering if there is a way to set these attribute telephony iframe via CIF configurations or any other way to get around this restictions.

This restriction is blocking us from integrating Dynamics 365 with our telephony system.

WarpDriveConsole-14.js:1938 Unsafe attempt to initiate navigation for frame with URL 'https://my.telephony.com/auth/?client_id=06919f4fd8ed324e&redirect_uri=https://oblab2.my.connect.aws/auth/code&state=AQICAHiU8BWms0CHU0327QagmWN-j4zcf_2dRVNA6mBq8f3xDgF_PU6skEIcTGt4TdEzDLbAAAAApjCBowYJKoZIhvcNAQcGoIGVMIGSAgEAMIGMBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDIyCYk9TD-FNh6H2EAIBEIBfRJIxMiraXNTtVRa_0BxV7ShLmd1N--Gcyps5mCeIWj2Vhog63y5WhzOTmLJBarUq8xwUnc52hF3DPFV2hdFehOgvnCAsCHx7QQCHFw-KLSiueEgnb6aM-2NzxTFGWYk=' from frame with URL 'https://oblab2.awsapps.com/auth/?client_id=06919f4fd8ed324e&redirect_uri=https://oblab2.my.connect.aws/auth/code&state=AQICAHiU8BWms0CHU0327QagmWN-j4zcf_2dRVNA6mBq8f3xDgF_PU6skEIcTGt4TdEzDLbAAAAApjCBowYJKoZIhvcNAQcGoIGVMIGSAgEAMIGMBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDIyCYk9TD-FNh6H2EAIBEIBfRJIxMiraXNTtVRa_0BxV7ShLmd1N--Gcyps5mCeIWj2Vhog63y5WhzOTmLJBarUq8xwUnc52hF3DPFV2hdFehOgvnCAsCHx7QQCHFw-KLSiueEgnb6aM-2NzxTFGWYk='. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.

  • Suggested answer
    Eiken Profile Picture
    on at
    RE: Channel Integration Framework- Add Attribute to Iframe

    Hi,

    This link may help you.

    Links inside oembed iframe not working | WordPress.org

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,233 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans