I need to call an external API to get some data from a SuiteScript file and I'm getting an issue. The GET call needs to go with credentials (basically, it has to go with the cookies in the Request Header).
If I make the API call from the chrome console setting withCredentials = true
, but when I make that API call with NetSuite N/https module -through https.get()
- the cookies don't go on the request header.
So in summary, I'm looking for a way to set withCredentials = true
on the http.get()
call or to be able to somehow get the cookies from my SuiteScript so that I can manually set it in the header
option of the call.
Thanks in advance for your time!