Is there way around the limitation of a Suitelet t...
# suitescript
c
Is there way around the limitation of a Suitelet that won't accept a POST request with a non-browser user-agent string? I'm trying to use a fairly standard Stripe webhook and NS won't let it through.
n
Use a middleware to pass the request to Suitelet with the header.
c
Thanks, I've explained this one to the client. It's so awkward having to say "yea, it's built for the speed of business, but it can't do that".
n
You don't need to use AWS/GC. A simple php file hosted on a domain will also work.
b
you can use a suitecommerce service as a suitelet if you are desperate. They don't require the user agent there
n
Is it free and available for all? @battk
b
no
e
We use a middleware layer for Stripe webhooks. I agree - it's frustrating that NetSuite won't give you the option to override this on certain Suitelets or allow for anonymous Restlet endpoints.
j
i've used cloudflare workers to proxy the webhook as a workaround
c
The technical solution is simple, the fact that the client has to introduce a new piece of infrastructure to their IT landscape is the pain. For some organisations, this is easy; for others, it creates a lot of drama.
1000 1
c
@Craig Drama is the operative word. If NS is some sort of magical thing, as opposed to a db with a front-end and a bunch of functions, then you're likely in a drama laden organization.
m
I know that you didn't set external roles and department for the Suitelet script when it's deployed. That is the main reason. you don't need another middleware or etc.
n
You do for the POST request. @Manuel Alejandro Medina Perez