Javascript fetch flask json
问题 So I'm trying to connect a Flask server to a front end create react app. Right now I just want to verify that I can send json between the two. Below is the code for each and a bit more description on the errors. Create React App fetch import React, { Component } from 'react'; import './App.css'; export default class App extends Component { constructor() { super() this.state = { pyResp: [] } } fetchHelloWorld() { console.log("fetching python localhost"); fetch('http://localhost:5000/', {