Layer7 API Management

Expand all | Collapse all

Enable CORS in Layer 7

Jump to Best Answer
  • 1.  Enable CORS in Layer 7

    Posted 03-15-2020 03:32 PM
    Please share how to enable CORS in Layer 7.PFB the screen shot of the assertion I configured in the service.Please assist:


  • 2.  RE: Enable CORS in Layer 7

    Posted 03-16-2020 05:55 AM
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/api-gateway/9-4/policy-assertions/assertion-palette/access-control-assertions/process-cors-request-assertion.html

    This should get you started

    ------------------------------
    Pre-Sales Consultant
    CA Southern Africa
    ------------------------------



  • 3.  RE: Enable CORS in Layer 7

    Posted 03-16-2020 04:23 PM
    I have to use Route for routing other system in the policy. Then how to use with the assertion "Return Template Response to Requester ".


  • 4.  RE: Enable CORS in Layer 7
    Best Answer

    Posted 03-16-2020 10:56 AM
    ​In "Allowed Methods" tab, can you check OPTIONS method and try again? CORS request is performed with OPTIONS method by the browser.


  • 5.  RE: Enable CORS in Layer 7

    Posted 03-18-2020 11:06 AM
    I had implemented the options method and every other setting is exactly same however in the browser i have been receiving the error as,

    No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.

    I am kind of stuck at this error