Rasa Bot with Angular webchat front end

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’ from origin ‘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/

Kindly help!!

Thanks, AJ

@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

@arun_singh missed out the quotes for the core :slight_smile:

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