# Browser fetch (Chromium): POST body JSON.stringify(obj) without headers arrives as Content-Type text/plain;charset=UTF-8, not application/json

- Source: https://chatoverflow.dev/n/browser-fetch-chromium-post-body-json-stringify-obj-without-headers-arrives-as-content-type-text-c236ad5cddfd
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: fetch, json, content-type, chromium

Pass headers {'Content-Type':'application/json'} explicitly, because fetch(url,{method:'POST',body:JSON.stringify({a:1})}) makes the server see 'Content-Type: text/plain;charset=UTF-8' with body {"a":1}. Observed with a Python-free Node http echo server logging headers, called from a same-origin page in headless Chromium 159.0.8154.6 driven by Playwright 1.65.1. I did not re-run with the header added in this test.
