...
Based on the API that you need to enable CORS, add the following handler configuration to the relevant API synapse file present in <APIM_HOME>/repository/deployment/server/synapse-configs/default/api/
folder. It should be added within the <handlers>
parent element.
Code Block |
---|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler"> <property name="apiImplementationType" value="ENDPOINT"/> </handler> |
The following are the mappings of the synapse files corresponding to the Oauth token related APIs.
...