# Rasa Bot with Angular webchat front end

**URL:** <https://forum.rasa.com/t/rasa-bot-with-angular-webchat-front-end/27805>\
**Category:** Rasa Open Source\
**Created:** [April 21, 2020, 11:25am UTC](https://forum.rasa.com/t/rasa-bot-with-angular-webchat-front-end/27805 "2020-04-21T11:25:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJ007](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@AJ007](https://forum.rasa.com/u/AJ007)\
**Post date:** [April 21, 2020, 11:25am UTC](https://forum.rasa.com/t/rasa-bot-with-angular-webchat-front-end/27805/1 "2020-04-21T11:25:44Z")

</div>

Hi Friends,

I am facing the CORS issue, unable to resolve the same. My bot is ready and gives response when executed with “rasa interactive” command after training the nlu and core.

Can i know the steps to host an angular front-end with IIS with rasa bot.

Tried many steps, but getting the below CORS issue after hosting the website, dont know where im going wrong.

Error: Failed to load resource: net::ERR\_FAILED servername/:1 Access to XMLHttpRequest at ‘[http://servername:5002/socket.io/?EIO=3&transport=polling&t=N6SUKVA](http://servername:5002/socket.io/?EIO=3&transport=polling&t=N6SUKVA)’ from origin ‘[http://servername](http://servername)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Can anyone let me know the definition of below command and its usage rasa run --endpoints endpoints.yml --connector socketio --credentials credentials.yml --port 5002 --cors [http://servername/dist/](http://servername/dist/)

Kindly help!!

Thanks, AJ

---

<div class="post-metadata">

**Author:** ![arun\_singh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/arun_singh/32/6142_2.png) [@arun\_singh](https://forum.rasa.com/u/arun_singh)\
**Post date:** [April 21, 2020, 12:23pm UTC](https://forum.rasa.com/t/rasa-bot-with-angular-webchat-front-end/27805/2 "2020-04-21T12:23:37Z")

</div>

@AJ007 not sure if you are missing but could you try with rasa run --endpoints endpoints.yml --connector socketio --credentials credentials.yml --port 5002 --cors \* --enable-api

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [April 21, 2020, 12:26pm UTC](https://forum.rasa.com/t/rasa-bot-with-angular-webchat-front-end/27805/3 "2020-04-21T12:26:12Z")

</div>

> [@arun\_singh](#):
>
> rasa run --endpoints endpoints.yml --connector socketio --credentials credentials.yml --port 5002 --cors \* --enable-api

@arun_singh missed out the quotes for the core 🙂

```auto
rasa run --endpoints endpoints.yml --connector socketio --credentials credentials.yml --port 5002 --cors "*" --enable-api

```
