Layer7 API Management

 View Only
  • 1.  CORS, OPTIONS http method

    Posted Jul 04, 2017 09:17 AM

    Hi, 

     

    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 

     

    OPTIONS: 

    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 

    CORS Policy Manager



  • 2.  Re: CORS, OPTIONS http method
    Best Answer

    Broadcom Employee
    Posted Jul 04, 2017 08:29 PM

    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")

     

    Regards,

    Mark