Skip to main content

BUGS ON WEBSITE LOG IN AND CHATBOT INTEGRATION

Connection refused or CSRF token mismatch. Please refresh the page. when logging in on your site

and im getting this on my local development using react (it is working previously)

Access to fetch at 'https://chatling.ai/public/embed/chatbot/setup' from origin 'http://localhost:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value 'http://localhost' that is not equal to the supplied origin. Have the server send the header with a valid value.Understand this error

chatling.ai/public/embed/chatbot/setup:1

Failed to load resource: net::ERR_FAILED

2 comments

Log in to comment and vote

Comments2

  • Ali Mahdi

    Team•

    May 19, 2025

    Please try clearing the site’s cache/cookies (or the browser cache/cookies).

  • Ali Mahdi

    Team•

    May 19, 2025

    Hi, which browser are you using when signing in?