CORS Error on Web Application


#1

Getting the following error:

XMLHttpRequest cannot load https://mydomain.oktapreview.com/oauth2/default/api/v1/authn. Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8043’ is therefore not allowed access.

I’m using the javascript api sample provided on this page: https://developer.okta.com/code/javascript/okta_auth_sdk

You can download my specific page here.

The url: “http://localhost:8043” IS added as a Trusted Origins.
I’ve confirmed that the clientID is correct.

My App settings are attached.

Any ideas?