stormy-gold•2y ago
Google Maps webchat iframe not working
When I enter the code and the allowdangerous html I still just get the syntax error shown in the picture.

2 Replies
Based on the information provided, it seems like you're trying to embed Google Maps into the Voiceflow webchat widget using an iframe. However, you're encountering a syntax error even after setting
allowDangerousHTML
to true
.
The allowDangerousHTML
configuration is indeed necessary to enable HTML elements such as iframes. By default, this value is set to false
due to potential cross-site scripting vulnerabilities (XSS). Here's how you can set it to true
:
However, it's important to note that enabling dangerous HTML elements can potentially expose your application to XSS attacks. Therefore, it's recommended to only use your own code and be cautious when using someone else's code.
If you're still encountering a syntax error, it might be due to an issue with the code you're using to embed the Google Maps iframe. Unfortunately, without seeing the exact code and the error message, it's difficult to provide a specific solution.
You might want to revisit the code you're using to embed the Google Maps iframe and ensure it's correctly formatted. If the issue persists, it could be beneficial to consult with the community members who might have encountered a similar issue before.
Sources:
- Voiceflow Documentation👍 Tico with the answer