
User16648134760526564552 (Customer) asked a question.
We are planning to call the session api okta.com/api/v1/sessions to set the cookie value but we are getting CORS error. I have added url as trusted origin and also setting up the header value as per the document.
There is similar question like this where it mentioned that we can't call api from angular project so I just want to make sure for SESSIONS API.

Hello @User16648134760526564552 (Customer) Thank you for reacting out to our Community!
The reason for this is that api/v1/sessions is not CORS enabled, as per this thread here:
https://devforum.okta.com/t/cors-error-on-okta-authorize-api-end-point-from-frontend/20449
The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.
The October issue of the Okta Community is here and packed with tips on certification, how to earn badges, and new releases. Let us help you stay connected.