3 ms·
It'd be no different from a fetch request. The inside of the function (the conditional) is run on a different machine with a different runtime process.
by chrysoprace 1y ago
It'd be no different from a fetch request. The inside of the function (the conditional) is run on a different machine with a different runtime process.
- Izkata 1y agoThey're not asking "how does this work?", they're asking "how is this secure?". The answer is, it's not. This is terrible code and should never be written like this - the check can be bypassed client side, letting the user act as an owner no matter what the response claimed.