https://discord.gg/botpress logo
CORS issue with my bot embedded on an external Wor...
# 🤝help
h
Hi, I have a CORS issue with my bot embedded on an external WordPress site. The browser console shows this error: "Access-Control-Allow-Origin header contains the invalid value ''" The request to https://webchat.botpress.cloud/fc2b3dfc-8399-4a69-b1da-96989e788009/users is being blocked because the Access-Control-Allow-Origin header is empty (not a wildcard, literally an empty string). My bot ID: 20260310131933-LHDLJ5EB My site: https://simpleshop.guadagnamotutto.eu The webchat window opens correctly, the bot name and icon show up, but it stays on loading (spinning dots) and never responds. The bot works fine in the Botpress Studio Emulator. Is this a known issue? Is there a fix or workaround? https://cdn.discordapp.com/attachments/1489637851510476963/1489637851665662042/Screenshot_3.png?ex=69d124db&is=69cfd35b&hm=6e166f603e425946265172a1cd5baa460caefb4f354834f5bac642af3473a155&
w
hi kaoha! do you have a paid plan?
h
No 🙁
w
no problem! it was just so i could eliminate an option
i think YOUR website is blocking botpress
h
but it worked until the day I ask for help 🙁
w
can you show me how you embedded botpress in wordpress?
h
I used WPCode plugin to add this code in the footer:
w
i'm gonna test it, 1 min
h
ok
can you try the embed before
instead of on the footer
h
have you try to write something?
w
oh true.. there's the problem
do you have access to the "allowed origins" page in botpress?
or have you ever changed anything there?
h
i don't touch nothing there
w
can you try creating another workspace and importing your bot there?
i think your allowed origins are bugged unfortunately
w
yes but its set to 'whitelist'
the default is 'all origins' since you can't actually change it
@loud-crowd-60573 could you do some ross magic to change this please? i think its an instant fix
l
Taking a look
@helpful-continent-72627 whats your workspace ID?
h
@loud-crowd-60573 wkspace_01KKBTXBG045NJEP9CZQRANGZR
fixed 😄
h
thank you very much :))))))))
2 Views