add cors
Browse files
main.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
from flask import Flask, request
|
2 |
from app import judge
|
|
|
3 |
|
4 |
app = Flask(__name__)
|
|
|
5 |
|
6 |
@app.route("/")
|
7 |
def hello():
|
|
|
1 |
from flask import Flask, request
|
2 |
from app import judge
|
3 |
+
from flask_cors import CORS
|
4 |
|
5 |
app = Flask(__name__)
|
6 |
+
CORS(app)
|
7 |
|
8 |
@app.route("/")
|
9 |
def hello():
|