I'm attempting to use the CIF framework to integrate a cloud telephony telephony system with Dynamics365. The telephone system's login procedure is:
- User On load it opens a new tab
- User enters the credentials and presses login.
- 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.