Hi, I'm trying to use the REST API from Node.js, making raw requests to the server, but I'm getting a CORS error. I followed this (http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1807076.aspx) guide as an example to configure it with no success.
This is the error I get from the request:
Fetch API cannot load http://10.30.156.222/spectrum/restful/alarms. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 401. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Thanks.
Diego MP