CORS Error in webhook
# 🤝help
p
I try receiving data from external website with webhook. But, Access to fetch at webhook from origin external website has been blocked by CORS policy. so, i want to allow to access control allow origin setting in botpress webhoo. what can i do?
l
You need to use a proxy service to avoid CORS. Most simple is to send the payload to a .PHP page and let it post the data to botpress webhook
p
That is only solution for this problem? So, Every botpress user must use proxy service ???
l
It is not related to Botpress, the block is at the browser end. Add a meta tag and check if it resolves the problem <meta http-equiv="Content-Security-Policy" content=" default-src 'self' 'unsafe-inline' 'unsafe-eval' https://code.jquery.com https://ajax.aspnetcdn.com *.botpress.cloud *.gstatic.com; img-src * data:; frame-src *; connect-src 'self' https://analytics.google.com https://www.google.co.in https://www.facebook.com;">
p
this occur problem what i don't know. i notice that meta tag is not a solution on CORS. so i need help botpress in external website receive data from that website.
3 Views