Allow Cross-Origin requests

This commit is contained in:
Ceda EI 2021-01-03 12:45:54 +05:30
parent 55ce880e1e
commit 5eb40b6fd8
2 changed files with 3 additions and 0 deletions

2
app.py
View File

@ -1,8 +1,10 @@
import json
from flask import Flask, jsonify, request, render_template
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
with open("data.json") as f:
data = json.load(f)

View File

@ -1 +1,2 @@
Flask>=1.1
flask-cors >= 3.0