mirror of
https://github.com/kuhyx/ARAI.git
synced 2026-07-04 11:43:15 +02:00
Update flask-corse module
This commit is contained in:
parent
9f9c5e453f
commit
2c7cbf88a7
@ -1,9 +1,11 @@
|
||||
from flask import Flask, request, jsonify
|
||||
from flask_cors import CORS
|
||||
from flask_cors import CORS, cross_origin
|
||||
|
||||
app = Flask(__name__)
|
||||
CORS(app)
|
||||
cors = CORS(app)
|
||||
app.config['CORS_HEADERS'] = 'Content-Type'
|
||||
|
||||
@cross_origin()
|
||||
@app.route("/", methods=['GET'])
|
||||
def recommended_mediators():
|
||||
data = request.get_json()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user