Trying to access RabbitMQ APIs using React JS but getting cors error

Viewed 27

Hello all hope you are doing well! I'm trying to access HTTP APIs of RabbitMQ but I'm getting the below error:

Access to XMLHttpRequest at 'http://localhost:15672/api/queues' 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.

I found on their documentation that I should modify the configuration file on my PC but I couldn't find it, and the advanced file that I found has an empty array ( []. ).

Can anyone please help me?

Thanks in advance!

0 Answers
Related