Answers for "CORS(app flask"

6

cors error in flask

from flask import Flask
from flask_cors import CORS, cross_origin

app = Flask(__name__)
CORS(app)

@app.route("/")
def helloWorld():
    return "Hello world"
Posted by: Guest on June-17-2020
1

install flask_cors

$ pip install flask-cors
Posted by: Guest on November-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language