microservices-patterns / ftgo-consumer-web-ui

Other
17 stars 28 forks source link

http://localhost:8080/api/address => 400 #16

Open cer opened 3 years ago

cer commented 3 years ago

POST http://localhost:8080/api/address with request body

 {"address":"180 Rishell Drive","time":"22:10","origin":1622143097043}

=> 400 Bad Request

cer commented 3 years ago

Surely, this should be application/json Content-Type: text/plain;charset=UTF-8

POST /api/address HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Content-Length: 69
Content-Type: text/plain;charset=UTF-8
Accept: */*
Origin: http://localhost:5000
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: no-cors
Sec-Fetch-Dest: empty
Referer: http://localhost:5000/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9