Can someone give me example how can I fetch data from netsuite restlet 'GET' ? - how do i set the headers token etc...?
n
NElliott
12/08/2022, 2:28 PM
Do you have the tokens etc set up in NS and are you using POSTman or something else?
d
David Na
12/08/2022, 2:52 PM
Yes, In Postman its works, i just need to put it on my react applicaiton
n
NElliott
12/08/2022, 3:09 PM
OK might have been good to mention that in your request for help 😉 Sorry I'm unable to advise on this.
b
battk
12/08/2022, 10:55 PM
react is usually clientside, which usually means cors will stop you from using TBA
battk
12/08/2022, 10:56 PM
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
David Na
12/11/2022, 3:46 PM
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