# Cors Enable

**URL:** <https://forum.rasa.com/t/cors-enable/18386>\
**Category:** Rasa Open Source\
**Created:** [October 4, 2019, 7:29am UTC](https://forum.rasa.com/t/cors-enable/18386 "2019-10-04T07:29:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![haneef](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/haneef/32/6613_2.png) [@haneef](https://forum.rasa.com/u/haneef)\
**Post date:** [October 4, 2019, 7:29am UTC](https://forum.rasa.com/t/cors-enable/18386/1 "2019-10-04T07:29:45Z")

</div>

HI All, I am new in rasa. I am have just created simple rasa bot and it working fine in rasa shell and if i enable api then in postman also working fine. but when i calling it from ajax for my html then gives error “Access to XMLHttpRequest at ‘[http://localhost:5005/webhooks/rest/webhook](http://localhost:5005/webhooks/rest/webhook)’ from origin ‘[http://localhost:8000](http://localhost:8000)’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.” but 5005 is working fine in post man.

So the rasa project str is like:- -data -core -stories.md -nlu -nlu\_data.md -models -actions.py -config.yml -endppoints.yml -endpoints.yml -nlu\_tensorflow.yml

and i have also tried “rasa run --cors=’_’ & --enable\_api = true" and "rasa run --endpoints endpoints.yml --cors '_’” and “rasa run --endpoints endpoints.yml” but none of these work for me.

If anyone knows then please help me out. Thanks

---

<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:** [October 4, 2019, 8:44am UTC](https://forum.rasa.com/t/cors-enable/18386/2 "2019-10-04T08:44:56Z")

</div>

hi @haneef, try the below command:

> rasa run -m models --enable-api --cors “\*” --debug

---

<div class="post-metadata">

**Author:** ![Govindarajan](https://avatars.discourse-cdn.com/v4/letter/g/eb8c5e/32.png) [@Govindarajan](https://forum.rasa.com/u/Govindarajan)\
**Post date:** [April 9, 2020, 11:58am UTC](https://forum.rasa.com/t/cors-enable/18386/3 "2020-04-09T11:58:27Z")

</div>

@JiteshGaikwad I have clarification how to run the rasa server on [rasa.ai.com](http://rasa.ai.com) (provided static IP and domain name) instead of localhost:5005, my environment is windows and offline environment (there is no access internet)
