Categories
Development

POST to API from React frontend is not working — Error 400

I’m trying to send data to my Flask API to get data into my database, but I keep getting the following error: OPTIONS /createUser HTTP/1.1″ 400 Reg.js import React, { Component } from ‘react’; class Reg extends Component { constructor() { super(); this.state = { FirstName: ”, LastName: ”, Email: ”, Password: ” } this.Email […]