Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource

I have been creating the example CRUD .Net Core/Angular6(I am on Ang 6) from the url:-

And when i am trying to login using the setup detailed din the article i keep on getting the following error:-
Failed to load https://dev-857823.oktapreview.com/oauth2/default/.well-known/openid-configuration: 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:4200’ is therefore not allowed access.

The first thing I’d check is to make sure that localhost:4200 is in your trusted origins in Okta:

Hi Lee

I have attached my general settings

Thanks Lee that worked :slight_smile:

2 Likes

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