Registration Form CORS Error for developer account


Am using Okta Developer account, where sign in widget is working fine, am able to signin, but registration form is ending with CORS error, i have added my local url in trusted origin (http://localhost:8080), still its not working getting the following error,

from origin ‘http://localhost:8080’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

I have enabled Registration in my account, what am i missing here.

What endpoint are you making a request to that is resulting in the CORS error?

its trying, which is giving CORS error,
When i try this url in browser am getting 404 error.
As said my redirect url in Registration is localhost:8080/okta2.html, which is same for login redirect aswell.

Found the issue, base url was wrong… updated and its working fine now

1 Like

yup, looks like you accidentally put the “issuer” uri as the baseUrl, which should just be the Okta domain, for your config.