Hi All, does anyone know how I can access a Suitel...
# suitescript
b
Hi All, does anyone know how I can access a Suitelet via SuiteScript without making it available without login? When the Suitelet is available without login I can access the data I want, as soon as I disable the option I get
You are not allowed to navigate directly to this page
Do I need to set a
header
and if so what does it need to contain?
j
If you want to add a layer of authentication, I think you should look into restlets over suitelet since that is the defining difference between the two as far as I know.
b
Your code looks fine
Im guessing your deployments audience is not correct
b
@jarens Yes, that is definitely something I should look into when this approach does not work. @battk I’ll will check that immediately
No it’s not the audience.
b
Is the https get in client script
b
it resides in a library file / module, not a client script.
b
lets try the question in a different way, is the https get used in a client side script or a server side script
b
server it is then.
The Suitelet uses a library module so then it’s a server script
b
annoyingly, server scripts cannot access suitelets or restlets using the internal url
they don't have the jsessionid cookie used for the access
b
too bad
@battk I have solved it by using a client script