we are trying to set up CORS with Options method in our CA Gateway. We followed all steps from tutorial: Process CORS Request Assertion - CA API Gateway - 9.2 - CA Technologies Documentation
but we are getting always a such answer:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server</faultcode> <faultstring>Error in assertion processing</faultstring> <faultactor>https://******:8443/***/v0.2/orders?access_token=5b859851-9537-4d51-8c0c-3c1b5685b73d</faultactor> <detail> <l7:policyResult status="HTTP method OPTIONS not allowed: https://1******/******:v0.2/orders" xmlns:l7="http://www.layer7tech.com/ws/policy/fault"/> </detail> </soapenv:Fault> </soapenv:Body></soapenv:Envelope>
Does anybody know how can we fix that problem?
Our API Gateway Screenshot:
cors — Postimage.org
Hello falent ,
OPTIONS method is not allowed by default, did you try to allow it in service properties? (right click on the published service -> select "Service Properties" -> select "HTTP/FTP" tab -> On "Allowed HTTP methods" section, check "OPTIONS")