fix(dashboard): set correct Content-Type for user creation
This commit is contained in:
5
.changeset/fast-experts-pretend.md
Normal file
5
.changeset/fast-experts-pretend.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@nhost/dashboard': patch
|
||||
---
|
||||
|
||||
fix(dashboard): set correct Content-Type for user creation
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user