I want to embed the latest updates from our community on my website:
- Website: https://www.schulminator.com/
- Discourse installation: 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:
I went to admin and setup the CORS origins:
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/’
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:
Access to XMLHttpRequest at ‘https://community.schulminator.com/latest.json’ from origin ‘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…
