ERR_EMPTY_RESPONSE error when sending data via 'POST' to local server

Asked

Viewed 182 times

-2

Until yesterday it was all right, but after clearing the browser cache, strange as it may seem, I can no longer send data via post to the local server, GET works without problem but the Post is not sent, the page keeps clicking until it drops and shows this message (under PTBR): "This page is not working No data has been submitted by localhost ERR_EMPTY_RESPONSE"

Note: In the LAN configuration, I already unchecked the option to use a proxy server for the local network as suggested in other posts but did not help. I’ve tried it with other browsers and it’s the same thing.

inserir a descrição da imagem aqui

1 answer

0

Solved, missed add this:

 let contentType = req.headers["content-type"];

in the app.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.