Hi All, Can I add header in restlet response ?
# suitescript
a
Hi All, Can I add header in restlet response ?
b
to my knowledge no, the only output for the restlet is the response body
s
@battk agree with you. We cannot add headers in the restlet response
a
@battk we are not able to overcome issue of cross origin
For same reason if I could add the header which will allow cross origin
b
i honestly didn't expect you to fix the CORS issue.
your best hope was to use a suitelet to build a NetSuite form
a
I can use the middleware to avoid this but I am not sure how safe is this
e.g. CORS Middleware API: https://cors-anywhere.herokuapp.com/
b
none of the option outside of letting NetSuite send the request is really secure