Skip to Content
0
Jul 21, 2022 at 03:39 PM

XSJS Access $ .request.header.set("Authorization",AccessToken) equals ""

45 Views Last edit Jul 21, 2022 at 03:41 PM 2 rev

Hello Friends,

I need to consume 3rd party apis having access token vales.

I am getting same access tokes in post call, i need to send this access token in get call.

var request = new $.net.http.Request($.net.http.POST, "/prefix/query/");
request.headers.set("Authorization", "eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

i am setting request headers in authrization header, every time when i set authrization header it is showing empty vale only.

image.png

Thanks,

Amit

Attachments

image.png (21.2 kB)