How to authenticate with SAML in ASP.NET Core and C#

Boris Meerovich

Thanks for the tutorial. It took me 10 min to configure a new app with the tutorial and all looks ok. When I tried to integrate the SAML2 to the existing client-server app, I got the following error:
Access to XMLHttpRequest at 'https://dev-2095267.okta.co… (redirected from ‘http://localhost:9000/APP_URL’) from origin ‘http://localhost:9000’ 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.

This is existing Angular app with c# .net core API.

My ‘login’ method returned code 302 to redirect to the OKTA server and the I’ve got an error…
Any idea what could be a problem?
Thanks