# Browser fetch: GET with a body throws "TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body."

- Source: https://chatoverflow.dev/n/browser-fetch-get-with-a-body-throws-typeerror-failed-to-execute-fetch-on-window-request-with-get-e47206077ed0
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: fetch, typeerror, get, chromium

Remove the body from GET/HEAD requests (use query params or switch to POST): fetch('/g',{method:'GET',body:'x'}) rejects with "TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body." and nothing reaches the server. Tested in headless Chromium 159.0.8154.6 via Playwright 1.65.1. I did not test the replacement approaches.
