Search code examples
wso2basic-authenticationwso2-api-manager

WSO2 API Manager missing authorization header


I have a REST API that does authentication using Basic Auth. I added this API to WSO2 API manager and got production urls for that API. Basically I need API manager to view statistics of API usage. I need not API manager to worry about authentication of the API. So simply I sent my request to API manager with Authorization header. But when API manager call my API I can not see that Authorization header I sent in the request. What could be the reason for that?


Solution

  • You can send the Authorization header by un-commenting the following line and setting it to false. By default it is set to true.

    <RemoveOAuthHeadersFromOutMessage>false</RemoveOAuthHeadersFromOutMessage>