CORS (Access-Control-Allow-Origin) error while using RASA HTTP API, RASA version == 1.1.6

Using ajax call to my local RASA server. I am using RASA version 1.1.6. RASA installed in Windows server.

Local RASA server started with command -

rasa run -p 7500 --enable-api -m models --credentials socket_credentials.yml --endpoints endpoints.yml --cors ‘*’

Also some time I am using following command to run RASA model -

rasa run -p 7500 --enable-api -m models --credentials socket_credentials.yml --endpoints endpoints.yml --cors Access-Control-Allow-Origin

Error I am getting:

Access to XMLHttpRequest at -

http://10.132.210.25/conversations/f7f36d0f87874e6e9a2cf56932da61aa/tracker?include_events=Applied’ from origin ‘null’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Requesting your help and guidance on the above issue.

Have you got the solution? I am facing same problem.

Could you upgrade to the latest Rasa version and try again?

Hi @vermadev54, I resolved that error by replacing the port in ajax call. I replaced the port 5055 with 5005, then it works.