DX NetOps

 View Only
  • 1.  Eenable Cross-Origin Resource Sharing (CORS) for Spectrum Oneclick

    Posted Feb 16, 2016 10:44 AM

    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



  • 2.  Re: Eenable Cross-Origin Resource Sharing (CORS) for Spectrum Oneclick

    Posted Feb 28, 2017 06:23 PM

    d.pereyra Did you ever resolve this issue?



  • 3.  Re: Eenable Cross-Origin Resource Sharing (CORS) for Spectrum Oneclick
    Best Answer

    Posted Mar 07, 2017 07:34 AM

    Hi,sorry but I don't remember about that issue, we resolved it doing some developement with php.

    Diego