Access to XMLHttpRequest at '' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

Getting this error when hitting the api endpoint from localhost:3000. As mentioned in the solutions Added “Access-control-allow-origing” and in the okta config setting adding origin URL and selected CORS enabled option.

Does sending “Authorization” and “Access-control-allow-access” in the request header is causing this issue"

My request headers are : :Authority:“”
:Method:GET
:Path:“”
:Scheme: https
Accept: application/json, text/plain, /
Accept-Encoding: “”
Accept-Language: “”
Access-Control-Allow-Origin:“”
Authorization:“”
Origin:“”
Referer:“”

Hello,

What endpoint in Okta are you making a request to?

1 Like

Hi Erik,

This is the endpoint I’m trying to hit from my front end react app but getting cors error

{{url}}api/v1/groups/{{groupId}}/users