add cors config
Browse files- server/app.py +2 -0
server/app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
from flask import Flask, send_from_directory
|
2 |
from waitress import serve
|
|
|
3 |
|
4 |
|
5 |
app = Flask(__name__)
|
|
|
6 |
|
7 |
@app.route('/')
|
8 |
def index():
|
|
|
1 |
from flask import Flask, send_from_directory
|
2 |
from waitress import serve
|
3 |
+
from flask_cors import CORS, cross_origin
|
4 |
|
5 |
|
6 |
app = Flask(__name__)
|
7 |
+
CORS(app)
|
8 |
|
9 |
@app.route('/')
|
10 |
def index():
|