Can someone give me example how can I fetch data f...
# suitescript
d
Can someone give me example how can I fetch data from netsuite restlet 'GET' ? - how do i set the headers token etc...?
n
Do you have the tokens etc set up in NS and are you using POSTman or something else?
d
Yes, In Postman its works, i just need to put it on my react applicaiton
n
OK might have been good to mention that in your request for help 😉 Sorry I'm unable to advise on this.
b
react is usually clientside, which usually means cors will stop you from using TBA
if your react app is hosted in netsuite, then you can use the internal url of the restlet, which does not require authentication information
d
I am using 'no cors' parameter to prevent from blocking my TBA, now i get error 401 from suitlet maybe somehting in my headers is wrong with the tokens? in postman its works well
b
the limitations of no-cors means its useless for use with restlets