I’m sure there is something I am missing but I have a DigitalOcean install of Discourse and I am hosting it from a subdomain of my site (forums.mysite.com) and from my main site I want to pull in the comments.
So I make a call to my Discourse installation -
But the problem is Modern CORS Supported browsers throw no ALLOW-ACCESS-CONTROL-ORIGIN header error. I went in to /var/docker/containers and edited the app.yml file and added
DISCOURSE_ENABLE_CORS: true DISCOURSE_CORS_ORIGIN: '*'
As per this post - How to enable Cross-origin Resource Sharing with docker
But when I do
./launcher stop app ./launcher bootstrap app ./launcher start app
And make the call again I don’t get the response headers. How can I check whether Discourse was bootstrapped with the new properties properly? Do I need to change some other configuration to allow my main domain mysite.com to get the OPTIONS to return with the proper headers?
Thanks in advance if anyone can help with this.