IBM Worklight v5.0.5 > Develop IBM Worklight applications > Develop the server side of an IBM Worklight application > The adapter XML File

The <proxy> element of the HTTP adapter


If the back-end application must be accessed through a proxy, add a <proxy> element inside the <connectionPolicy> element.

If the proxy requires authentication, add a nested <authentication> element inside <proxy>. This element has the same structure as the one used to describe the authentication protocol of the adapter.

The following example shows a proxy that requires basic authentication and uses a server identity:

<connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
    <protocol>http</protocol>
    <domain>www.bbc.co.uk</domain>
    <proxy>
        <protocol>http</protocol>
        <domain>wl-proxy</domain>
        <port>8167</port>
        <authentication>
            <basic/>
            <serverIdentity>
                <username>${proxy.user}</username>
                <password>${proxy.password}</password>
            </serverIdentity>
        </authentication>
    </proxy>
</connectionPolicy>


Parent The adapter XML File