# Deploying the rasa webchat on server

**URL:** <https://forum.rasa.com/t/deploying-the-rasa-webchat-on-server/19917>\
**Category:** Rasa Open Source\
**Created:** [October 16, 2019, 7:21pm UTC](https://forum.rasa.com/t/deploying-the-rasa-webchat-on-server/19917 "2019-10-16T19:21:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alphaisnice](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@alphaisnice](https://forum.rasa.com/u/alphaisnice)\
**Post date:** [October 16, 2019, 7:21pm UTC](https://forum.rasa.com/t/deploying-the-rasa-webchat-on-server/19917/1 "2019-10-16T19:21:53Z")

</div>

Hi, I can run the **[rasa webchat](https://github.com/mrbot-ai/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: `myserverip:8000` 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

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [October 17, 2019, 11:25am UTC](https://forum.rasa.com/t/deploying-the-rasa-webchat-on-server/19917/2 "2019-10-17T11:25:14Z")

</div>

Hello @alphaisnice,

This most likely is not a Rasa issue and we aren’t the support structure for that project unfortunately. I see there is already an issue filed against that repo [Deploying the rasa webchat on server · Issue #129 · mrbot-ai/rasa-webchat · GitHub](https://github.com/mrbot-ai/rasa-webchat/issues/129) seems like word for word what is here, is that your issue?

If this works locally then I don’t believe Rasa is the issue but maybe the CORS piece in your webpack/frontend Rasa Chat part. I can double check trying this but this doesn’t sound like a Rasa server issue.

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [October 17, 2019, 11:34am UTC](https://forum.rasa.com/t/deploying-the-rasa-webchat-on-server/19917/3 "2019-10-17T11:34:37Z")

</div>

I also just tested this with a basic setup locally and seems fine so I believe this is something in that other project not rasa

 ![56%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/ecf3273b5eac0205cce96d7683273a74b851710a.png)

---

<div class="post-metadata">

**Author:** ![alphaisnice](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@alphaisnice](https://forum.rasa.com/u/alphaisnice)\
**Post date:** [October 17, 2019, 11:53am UTC](https://forum.rasa.com/t/deploying-the-rasa-webchat-on-server/19917/4 "2019-10-17T11:53:18Z")

</div>

Thanks for your reply. Yes. That’s the issue I have created on their github page. The problem is I don’t exactly know what’s the root of CORS problem! I could not find a practical way to debug the software while its running. Another question which might not be directly related to the topic,

What is the standard way for deploying rasa chatbot on a server? Is it `rasa run` command provided CLI itself or I should deploy a dedicated webserver like Nginx?

Thanks
