I can run the rasa webchat successfully on localhost and it communicates correctly with my locally implemented rasa server. But the issue arises when I call the following command(same command which leads to successful connection) on server:
npx webpack-dev-server --config webpack.dev.js --port 8000
It says it has been compiled successfully but when I call the same port like this:
I don’t get any result(it does not load). Could you please give me a detailed instruction on how to implement it on server? (BTW, my server is Ubuntu 18.04 LTS)
In addition, when I use the
webchat-0.5.8.js script and mimic the example you’ve provided I get an error like this in the browser console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://SV-ipAddress-WAS-HERE:8080/socket.io/?EIO=3&transport=polling&t=MtLcjZT. (Reason: Multiple CORS header ‘Access-Control-Allow-Origin’ not allowed).
Although I have run RASA by
rasa run --enable-api --cors "*" --debug --port 8080 --endpoints endpoints.yml I get this CORS error!
Same command on localhost works perfectly well!
I am looking forward to hearing from you guys
Thanks in advance