https://discord.gg/botpress logo
'unsafe-inline' needed in Content Security Policy ...
# 🤝help
m
I am embedding botpress in our site, and I have to make several adjustments to our Content Security Policy to get it working. I ended up adding "script-src cdn.botpress.cloud files.bpcontent.cloud; img-src files.bpcontent.cloud; frame-src cdn.botpress.cloud files.bpcontent.cloud; connect-src webchat.botpress.cloud; style-src 'unsafe-inline' ". It would be nice if the documentation mentioned the host names that should be added, but especially the last one - style-src 'unsafe-inline' - will cause an issue for getting it past security when going to production. How do I make a feature request to prevent this unsafe-inline? (I do not have permissions to do so). Or does someone have another solution to embed that does not require unsafe-inline?
l
Hey @modern-eye-98685 Thank you for reaching out! Please make a feature request here: #feature-requests Add as many details as possible 🙂
m
Thanks! I added two feature requests, one for documentation (for any others that need this after me): https://discord.com/channels/1108396290624213082/1433049277994762343, and one for changing the code to make it possible to use without 'unsafe-include' (as this is not safe 😉 ) https://discord.com/channels/1108396290624213082/1433052093186441287.