Closed marc-odp closed 1 year ago
The simple example index.html should be corrected like this
// send data to the backend route fetch("/auth/register", { method: "POST", body: JSON.stringify(object)
becomes
// send data to the backend route fetch("/auth/register", { method: "POST", body: JSON.stringify(object), headers: { 'Content-Type': 'application/json' }
See this link for details https://github.com/tiangolo/fastapi/issues/3373
The simple example index.html should be corrected like this
becomes
See this link for details https://github.com/tiangolo/fastapi/issues/3373