H3 doesn't support body content on SEARCH method?
I'm trying to proxy an API, by following Alex's video on proxies. I want to be able to use the
SEARCH
http method.
I tried using routeRules, which works, but it doesn't seem to pass in the body to the destiny endpoint, returning unfiltered data.
Also tried using the server route method, which also works, but with the same result. The body does not seem to be applied to the destiny endpoint.
When I try to read the body...
... and use SEARCH
(response in the image). If I change the request to POST
, the readbody
seems to to work as expected.
So, H3 does not support body
on SEARCH method? ... Or am I missing something on defineEventHandler
?0 Replies