
User17247673492749347934 (Customer) asked a question.
We are trying to implement the authentication and authorization using OKTA API. Our application was built on SPA model using Angular as frontend and .NET core WEB API as backend. While trying to make a call from Angular frontend application to the authorize Api endpoint, we are getting the CORS error. Please see the screenshot below.
The application URL is already registered in the trusted origins in Okta server.
The application we are trying to use is registered as a SPA in the Okta server.
Okta Server Settings
API Query
Code snippet for calling API
Can you please help to fix the above mentioned CORS error ?

Hi @User17247673492749347934 (Customer) , Thank you for reaching out to the Okta Community!
This question is more appropriate for our dedicated Okta Developer Forum.
My advice would be to reach out via devforum.okta.com to take advantage of their expertise.
While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-custom/developer work).
In the meantime, you can check this article for any relevant info or this older devforum post.
Regards.
--
Ask Us Anything thru 9/3 Okta’s New MFA Requirement for Admin Console Access