Replacing the background adapter Query origin

Backlight 6.1

Using Chrome to check the API access to the server and in one scenario, you must override the source code in order to successfully execute the request and avoid the 403 status.

Implementing the same API in the Worklight HTTP adapter. I would like to override Origin to avoid hitting 403. You can port Origin to the HTTP desktop adapter.

Thank you for your time and help.

+1
source share
1 answer

, , , , . , , : / HTTP- IBM Worklight HTTP- User-Agent?

var input = {
    method : 'get',
    headers: {foo: 'bar'},
    path : '/mypath'
};  
return WL.Server.invokeHttp(input);

foo: bar Origin .

0

All Articles