Coding hobbyist here so apologies if this is a dumb question. I have started up a new worker instance with the default fetch setup.
It returns “hello world!” just fine until I add anything to the body of the request (I want to add JSON to the request) and as soon as I add anything (even {}) I start getting “400 Bad Request” responses. Is there a setting I need to change in order to attach body text to my requests?
I am not publishing just running on my local machine. Also, I’ve set content-type headers for application/json.
Thanks Simon - You helped me without realising it! When I went to the playground I realised my mistake was leaving the request type as GET rather than POST. Cloudflare doesn’t like GET requests with a body… which makes sense. Thanks for the suggestion.