Post action using REST to Hasura database #8823
-
I'm currently having issues posting my form data to my database from the frontend, please help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello Philip, Can you send us the message that error shows? Generally,
Related SolutionYou need to use
|
Beta Was this translation helpful? Give feedback.
Hello Philip,
Can you send us the message that error shows? Generally,
400
error code is thrown when there is invalid syntax(JSON payload) or malformed request body.Related Solution
You need to use
mode:"cors"
when you are passingContent-type:"application/json"
The
no-cors
mode only works with some constraint. Covering from mdn docs regarding fetchI check that you've set request mode to
no-cors
in fetch opt…