I’m trying to make a simple React web app to show node stats by querying the dashboard API. However, my browser gives a CORS error when I make the request:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.42.8:14002/api/sno. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
I’m not an expert in this but from what I’ve googled around it looks like the response headers from dashboard API should have “Access-Control-Allow-Origin” set to “*” for this to work.
The API itself works fine, I tested it with a Python script.
Any ideas? Am I doing something wrong here or should I make a suggestion to the devs?