Auth0 Home Blog Docs

CORS errors with the wordpress plugin



Hi guys I’ve got the plugin installed and can authenticate when i start chrome with no security (google-chrome --disable-web-security --user-data-dir) However, when I run the plugin as normal it errors out when i use either password or passwordless logins. Specifically, I can get the authorization code and when I enter it in lock, it fails with the error below:

Failed to load https://<my-domain> Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://<my-domain>.com' is therefore not allowed access.

Should I be editing my apache config to fix this? or does wordpress prefer I do something else?