kris-payne / Twilio-Flex-with-Dynamics365

Flex Plugin and Twilio Functions used for integration with Microsoft Dynamics 365
2 stars 2 forks source link

Error when showing Flex screen in Dynamics 365 #3

Open trucbinh opened 3 years ago

trucbinh commented 3 years ago

I got this error when using Chrome: "[Report Only] Refused to frame 'https://flex.twilio.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'"". And Flex frame is not showing on the screen. By the way, I also got this error:

`Uncaught TypeError: window.Microsoft.CIFramework.addHandler is not a function
    at bundle.js:1
    at executeCallbacks (bundle.js:1)
    at bundle.js:1
    at Array.o (bundle.js:1)
    at publish (bundle.js:1)
    at bundle.js:1
    at r (bundle.js:1)
    at HTMLScriptElement.i.onload.i.onerror.i.onbeforeload (bundle.js:1)
Xorserd commented 3 years ago

There has been a security update from Twilio Flex. you would need to register your dynamics CRM url eg. https://xxxxx.crm.dynamics.com/ under Twilio Flex's Allowed URLs list in order to embed Flex as an iframe

follow this documentation below

https://www.twilio.com/docs/flex/admin-guide/setup/secure-iframe