Hi, I followed this guide
to install discourse on my mac for development. I am now implementing SSO with DiscourseConnect. I’ve got the validation working, but when my WP site redirects to discourse I get a 404
Access to XMLHttpRequest at 'localhost:4200/session/sso_login?sso=[sso]&sig=[sig]' (redirected from 'localhost /login') from origin 'localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I have added localhost:8083 as a valid CORS origin, but I can’t seem to find where I should set DISCOURSE_ENABLE_CORS
to true
. I am not running a docker container so there is no app.yml, and it doesn’t seem to be in the site_settings table in the database either. What’s the correct way to enable CORS on a locally hosted Discourse site?