I'm trying to receive a POST sent by an external A...
# suitescript
m
I'm trying to receive a POST sent by an external API to my Suitelet but apparently Suitelets only accept requests with a User agent header. How can I work around this?
b
its one of the reasons suitelet make poor webhooks
you need control over the user agent header of whatever is sending the requests
and thats very rare
m
yeah, I have no control over the request coming in. And apparently requests sent to RESTlets need to be authenticated, which again... I have no control on.
b
expect to have some sort of middleware
keanu thanks 1
m
Got it, thank you.
b
you might have better luck with a ssp service, ive heard its more lenient
m
Thank you, I'll look into it.
s
does SSP require SCA these days?
d
There's no dependency on SCA for SSP 1 or 2. The only thing I'm not 100% sure is whether you have to have a website/domain setup in order to use them. After deployment, they show a system domain URL, so I suspect not. Service files are very forgiving and can be made public, so you can create your own auth mechanism in the request if necessary.
s
ah, so SSP supports SS2 now? To be honest I've never given too much attention to SSP as it seemed like a sideline technology
or maybe it was due to the account needing SCA or Advanced Site Builder or whatever the website feature was called.