other-emerald
other-emerald2y ago

iframe is not working

I was trying to integrate an i frame in the text and I turned "allowdangeroushtmal:true" from the documentation but till now it's not working . But the same iframe is working on webpage .so there is no fault in the code. Can anyone help me in this ?
1 Reply
Tico | Voiceflow Assistant
It sounds like you're having trouble integrating an iframe into the Voiceflow Web Chat widget despite setting allowDangerousHTML: true as per the documentation. Here are a few key points to consider: - By default, iframes and other potentially dangerous HTML elements are disabled in Voiceflow's Web Chat to prevent cross-site scripting (XSS) vulnerabilities. Enabling allowDangerousHTML: true is necessary to use these elements. - Ensure that you're using your own code for the iframe to avoid security risks associated with XSS vulnerabilities. - The correct integration of the iframe within the Web Chat widget requires modifying the Web Chat installation code to include your project ID and other configurations. - Custom CSS can be applied using a data URL or by linking to your self-hosted stylesheet to adjust the appearance of the iframe and chat widget. If the iframe is still not displaying correctly, double-check the syntax and configuration settings in your Web Chat installation code. Also, ensure that the iframe code itself is correct and functional outside of the Voiceflow context. For more detailed guidance on embedding and customizing the Voiceflow Web Chat widget, including using iframes, you can refer to the documentation available on our developer portal: Embed & Customize Styling.

Did you find this page helpful?