json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Post method does not work

Open AdrielCavalcante opened this issue 3 years ago • 4 comments

Post method does not work online, only locally. Other requests from other methods are working, like PUT/GET/PATCH etc.

I've already added in the code: headers: { "Accept": "application/json", "Content-Type": "application/json" }

I opened the console and everything seems to be correct, giving me 201 and so on. Locally, it works fine, but at typicode.com, it doesn't!

AdrielCavalcante avatar Oct 30 '21 20:10 AdrielCavalcante

I have similar problem

ridhlab avatar Nov 05 '21 08:11 ridhlab

I have the same problem too.

ganeshmani avatar Nov 07 '21 07:11 ganeshmani

Same here.

jtontiwith avatar Dec 23 '21 04:12 jtontiwith

same

umeraziz45 avatar Mar 18 '22 06:03 umeraziz45

same

edmblue avatar Nov 16 '22 12:11 edmblue