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


#1

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.


#2

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


#3

Hi Lee

I have attached my general settings


#4

Thanks Lee that worked :slight_smile: