
c1xrp (c1xrp) asked a question.
Hi,
I'm trying to get the user information using the authorization token from the /userinfo endpoint, but everytime i get a CORS error. The request completes successfully, but i get 200 cors. Below is a screenshot of what i get:
https://i.ibb.co/J5fZYFn/okta1.png
I have enabled cors for my origin in the API section in my dashboard (and hence can correctly use the okta-sigin-widget in my react app) , but i still get CORS error.
I want to be able to call this API from the browser to get some user info.
Am i missing any steps here?
Thanks

Hello,
Please read the following guide, so you can see if you missed something on your implementation
https://developer.okta.com/docs/guides/enable-cors/overview/
See the following pages on this post
-Overview
-Grant cross origin access to websites.
and soo on.
So will will see if you missed something that is causing you the error.