anybody knows the code equivalent of this in Suite...
# suitescript
e
anybody knows the code equivalent of this in Suitescript 1.0?
Copy code
response.setHeader({
   name: 'Access-Control-Allow-Origin',
   value: '*'
});
response.setHeader('Access-Control-Allow-Origin', '*'); doesn't work, getting an invalid header
b
use a non security related header
Content-Type is fairly common
e
but I need the Access-Control-Allow-Origin to be passed on the header
b
do the content type anyways so you can learn how to set headers
after that you can take a look at the error and make a reasonable guess on why one works and the other doesnt