# Multiple cors origins on hosted discourse?

**URL:** <https://meta.discourse.org/t/multiple-cors-origins-on-hosted-discourse/68172>\
**Category:** Product Support\
**Created:** [August 16, 2017, 6:26pm UTC](https://meta.discourse.org/t/multiple-cors-origins-on-hosted-discourse/68172 "2017-08-16T18:26:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [August 16, 2017, 8:18pm UTC](https://meta.discourse.org/t/multiple-cors-origins-on-hosted-discourse/68172/2 "2017-08-16T20:18:58Z")

</div>

If the origin of the request matches one of the listed origins, then we return that as the allowed CORS origin.

> <https://github.com/discourse/discourse/blob/main/config/initializers/008-rack-cors.rb#L27-L29>

So it should already be working for you.

---

_[View the full topic](https://meta.discourse.org/t/multiple-cors-origins-on-hosted-discourse/68172)._
