fix(dashboard): set correct Content-Type for user creation

This commit is contained in:
Szilárd Dóró
2023-02-23 12:50:00 +01:00
parent 1c6f1e3b33
commit f673adea00
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
'@nhost/dashboard': patch
---
fix(dashboard): set correct Content-Type for user creation

View File

@@ -81,6 +81,7 @@ export default function CreateUserForm({
await toast.promise(
fetch(signUpUrl, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email, password }),
}).then(async (res) => {
const data = await res.json();