Re: [whatwg/fetch] Request with GET/HEAD method cannot have body. (#551)

This works with Laravel (or any server implementing this)

```
        const data = await fetch(route('a.route'), {
            method: 'POST',
            headers: {
                'content-type': 'application/json',
            },
            body: JSON.stringify({
                _method: 'GET',
                foo: 'bar',
            }),
        });
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/551#issuecomment-2546049173
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/551/2546049173@github.com>

Received on Monday, 16 December 2024 16:13:59 UTC