# La configuration des origines CORS ne fonctionne pas

**URL:** <https://meta.discourse.org/t/cors-origins-setup-does-not-work/105980>\
**Category:** Product Support\
**Created:** [Janvier 8, 2019, 2:38 UTC](https://meta.discourse.org/t/cors-origins-setup-does-not-work/105980 "2019-01-08T14:38:11Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mymario](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mymario/32/128492_2.png) [@mymario](https://meta.discourse.org/u/mymario)\
**Post date:** [Janvier 8, 2019, 2:38 UTC](https://meta.discourse.org/t/cors-origins-setup-does-not-work/105980/1 "2019-01-08T14:38:11Z")

</div>

I want to embed the latest updates from our community on my website:

- Website: [https://www.schulminator.com/](https://www.schulminator.com/)
- Discourse installation: [https://community.schulminator.com/](https://community.schulminator.com/)

To accomplish this, I am trying to access the **latest.json** and will parse that appropriately and embed on my site:

- [https://community.schulminator.com/latest.json](https://community.schulminator.com/latest.json)

I went to admin and setup the CORS origins:

 ![20](https://global.discourse-cdn.com/meta/original/3X/9/9/992fdc749652a0daa5c9c1d887a8b872c601df40.png)

I even updated app.yml with the following lines and rebuild the whole thing:  
_DISCOURSE\_ENABLE\_CORS: true_  
_DISCOURSE\_CORS\_ORIGIN: ‘[https://www.schulminator.com/](https://www.schulminator.com/)’_  
I don’t know if this is needed but it does work with this setting or without.

But still same issue as you check on this site:  
[https://www.schulminator.com/test?123](https://www.schulminator.com/test?123)

_Access to XMLHttpRequest at ‘[https://community.schulminator.com/latest.json](https://community.schulminator.com/latest.json)’ from origin ‘[https://www.schulminator.com](https://www.schulminator.com)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource._

I am really stuck here…

---

_[View the full topic](https://meta.discourse.org/t/cors-origins-setup-does-not-work/105980)._
