WSO2 API Manager CORS

前端 未结 2 1925
醉梦人生
醉梦人生 2020-12-11 20:25

I\'d like to enable CORS on my WSO2 API Manager instance for all endpoints. I\'ve been through the documentation (which is great) and it suggests altering the r

2条回答
  •  失恋的感觉
    2020-12-11 20:51

    The CORS configuration in the api-manager.xml will be only applied for the APIs created through the API Manager. It will not apply those configurations to Token APIs such as /token and /revoke.

    The token API related configurations are located in {PRODUCT_HOME}/repository/deployment/server/synapse-configs/default/api directory.

    You can edit the _TokenAPI_.xml and add CORS headers if you needed. You may refer[1] as useful resource.

    [1] - http://blog.lakmali.com/2013/10/how-to-add-additional-headers-to-wso2.html

提交回复
热议问题