Python + React : how to use ChatKit on localhost?

Hello,

I’m working on a frontend React App with Vite and a backend python server with FastAPI.
I want to use ChatKit to improve my app chatbot.

However, I’m not able to run it correctly as localhost is not a verified domain… And I can’t add it to the allowed domain list in the dashboard.

Here is the errors :

ChatKitBloc.jsx:29 POST (link) 500 (Internal Server Error)

index-0anOpj47.js:360 POST (link) 401 (Unauthorized)

index-0anOpj47.js:360 POST (link) 401 (Unauthorized)

index-0anOpj47.js:368 Domain verification failed for (link) - this check is required in production. To allow your domain, register it at (link)

(anonymous) @ index-0anOpj47.js:368
Promise.then
verifyDomain @ index-0anOpj47.js:368
undefined -— -— -—
(anonymous) @ index-0anOpj47.js:368
undefined -— -— -—
setTimeout
YM1 @ index-0anOpj47.js:368
undefined -— -— -—
(anonymous) @ index-0anOpj47.js:370
undefined -— -— -—

frame.html:1 Unchecked runtime.lastError: The message port closed before a response was received.

about:blank:1 Unchecked runtime.lastError: The message port closed before a response was received.

index-0anOpj47.js:360 POST (link) 401 (Unauthorized)

index-0anOpj47.js:130 POST (link) 401 (Unauthorized)

index-0anOpj47.js:130 POST (link) 401 (Unauthorized)

Juste to mention, I copied and adapted correctly the code proposed by OpenAI (embed chatkit in your frontend)

Then, I tried the open-chatkit-starter-app that works with Next.js and it works perfectely. Why ? It’s a local embedding too… Here the link of the app GitHub :

Sorry, I’m not able to send you links in this Topic…

Does anyone know how to code locally with React and Python in ChatKit ?
Thanks for your help.

Have a great day !
Jonathan