AnsweredAssumed Answered

cors issue with API Gateway 9.1

Question asked by HitenM on Jul 20, 2016
Latest reply on Aug 30, 2016 by Stephen_Hughes


I am using API Gateway 9.1, and added CORS  (Process CORS request) as explained at;

 

Process CORS Request Assertion - CA API Gateway - 9.1 - CA Technologies Documentation

I get following response for OPTIONS request

  1. Request Method:OPTIONS
  2. Status Code:200 OK

Response Header:

  1. HTTP/1.1 200 OK
  2. Server: Apache-Coyote/1.1
  3. Connection: close
  4. Content-Type: text/plain;charset=UTF-8
  5. Content-Length: 0 Date: Wed, 20 Jul 2016 16:41:13 GMT

 

 

 

 

 

  1. But I get error on browser Console as;
  2. 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.

 

 

 

Any insight here !! Why is that error after adding CORS on my API ?

Outcomes