How do I send a post request in react?

First, we specify the ‘method’, POST. Then, we specify the value of ‘mode’. Since the Flask server is being hosted on a different port on our machine (8080) than the React app, we have to specify the value as ‘cors’. All this means is that data will be sent across origins.

Sizin İçin Seçtik  What Laravel developer should know?

Leave a Reply

Your email address will not be published. Required fields are marked *