I managed to get the React frontend working, but I’m encountering an issue. When I click ‘login’, I receive the following error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://dev-09774240-admin/oauth2/default/.well-known/openid-configuration. (Reason: CORS request did not succeed). Status code: (null).
To use Okta with your application running on localhost (assuming you are running locally for this testing), you need to add your localhost URL (e.g., http://localhost:4000) to the “Trusted Origins” list in your Okta Admin Console.
Navigate to Security > API > Trusted Origins, click “Add Origin”, enter your localhost URL, select “CORS” as the Type, and save.
This allows your local development environment to interact with Okta APIs properly.
I noticed your Sign-in and Sign-out redirect URIs have extra space in between http:// and localhost:3000. Maybe it is just a copy/paste error or a typo.
Can you check if you have that space in an actual config?