UNSOLVED

Lim99

updated

4 years ago

L

Lim99

3 Posts

0

469

February 27th, 2023 18:00

CORS Issue

I and trying to make some simple web application that get system status using redfish api through iDRAC port. I can test some redfish apis through iDRAC port(we assigned ip to iDRAC and can access through ip) using insomnia tool(rest api test tool). but when I call them in web application(react, javascript), the browser returns 'cors errors'

Could you please let me know how to solve 'cors errors'?

Error message :

Access to XMLHttpRequest at 'https:// /redfish/v1/SessionService/Sessions' from origin ' http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.