Giter Site home page Giter Site logo

Providing CORS about chatroom HOT 5 CLOSED

scalableminds avatar scalableminds commented on August 22, 2024
Providing CORS

from chatroom.

Comments (5)

abhishakvarshney avatar abhishakvarshney commented on August 22, 2024 1

Resolved!!! I was missing yarn build after changing the URL in index.html. I directly ran yarn serve command after changing the URL.

from chatroom.

hotzenklotz avatar hotzenklotz commented on August 22, 2024

I am not quite sure I understand the problem.

The custom channel should be CORS enabled already:
https://github.com/scalableminds/chatroom/blob/master/rasa_utils/bot_server_channel.py#L104

As far as I can tell the bot responses already have the CORS headers present:
image

from chatroom.

abhishakvarshney avatar abhishakvarshney commented on August 22, 2024

Yeah I know that but after using that I am unable to chat with bot from another PC. However, I am able to chat with bot on the same PC.

from chatroom.

hotzenklotz avatar hotzenklotz commented on August 22, 2024

This is most likely not a CORS issues. Sounds like you configured the web frontend to connect to the host : localhost? Most likely you want this to be the public IP address / domain of the computer where your bot is hosted. Then you should be able to connect to the bot from another computer.

    var chatroom = window.Chatroom({
      host: "<some_ip_address>:5005",
      container: document.querySelector(".chat-container"),
    });

from chatroom.

abhishakvarshney avatar abhishakvarshney commented on August 22, 2024

Yeah, I know that and I am not using local address. I am using public url using ngrok tunneling.

from chatroom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.