# Doubt regarding rasa run --model models --enable-api --cors “\*” --debug

**URL:** <https://forum.rasa.com/t/doubt-regarding-rasa-run-model-models-enable-api-cors-debug/52753>\
**Category:** Rasa Open Source\
**Created:** [April 21, 2022, 4:30pm UTC](https://forum.rasa.com/t/doubt-regarding-rasa-run-model-models-enable-api-cors-debug/52753 "2022-04-21T16:30:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arjuscorpio2000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/arjuscorpio2000/32/20327_2.png) [@arjuscorpio2000](https://forum.rasa.com/u/arjuscorpio2000)\
**Post date:** [April 21, 2022, 4:30pm UTC](https://forum.rasa.com/t/doubt-regarding-rasa-run-model-models-enable-api-cors-debug/52753/1 "2022-04-21T16:30:59Z")

</div>

Can any one explain why we are adding `--enable-api --cors “*”` flag in `rasa run --model models --enable-api --cors “*” --debug -p $PORT`?.

Like I know this command is used to start the rasa server but I haven’t understood the use of `cors "*"` and `enable-api`.

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [April 22, 2022, 11:57am UTC](https://forum.rasa.com/t/doubt-regarding-rasa-run-model-models-enable-api-cors-debug/52753/2 "2022-04-22T11:57:42Z")

</div>

From the [docs](https://rasa.com/docs/rasa/command-line-interface#rasa-run):

- `--cors [CORS ...]`: Enable CORS for the passed origin.
- `--enable-api`: Start the web server API in addition to the input channel.

If you don’t know what CORS is, check out [CORS in 100 Seconds](https://www.youtube.com/watch?v=4KHiSt0oLJ0).

`--cors "*"` basically means you are allowing any URL to make requests to the server. For example:

- `cors "https://example.com/*"` means you allow requests from any page on `example.com` only.
- `cors "https://example.com/chatbot"` means you allow requests from `example.com/chatbot` only.

And `--enable-api`, well, enables the [API](https://rasa.com/docs/rasa/pages/http-api).
