Registration Form CORS Error for developer account

Hi

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 https://dev-86006004.okta.com/oauth2/default/api/v1/registration/form, 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.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.