Iam gettings CORS error when i try to perform an API request from browser, i had received this ERROR
Console Error
CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Example Screenshot

Please give more details on what are you accessing? How are you accessing? Where is your server hosted? Does it have the setting Access-Control-Allow-Origin: *? Any Proxy?
as J mentioned, your server needs to allow.. You can set it up to be open as much as,
Access-Control-Allow-Origin: *
or restrict it to,
Access-Control-Allow-Origin: http://localhost:3000
You can also make it working by sending the request to a Proxy instead.
well your http server needs to allow cross origin request.
CORS errors are a security mechanism that "protects" your content from others sides to be requested via xhr.
so your server needs to say either 'this client is allowed' or '*' all clients are allowed. you still could spoof it but that's a different topic.
in general it matches the 'address url' with the own 'server name' and if it does not match the client say 'naaahhhhh sorry' unless the server says 'well you are allowed, even if it does not match'.
so you either download a cors browser plugin that spoofs/proxies the request or you configure your http server accordingly.
Idris Lawal
Software Engineer
I guess this has been resolved.