We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cecd75b commit a143028Copy full SHA for a143028
1 file changed
fri/server/main.py
@@ -5,6 +5,7 @@
5
from pathlib import Path
6
import json
7
import subprocess
8
+from flask_cors import CORS, cross_origin
9
10
cur_path = os.path.dirname(os.path.abspath(__file__))
11
concore_path = os.path.abspath(os.path.join(cur_path, '../../'))
@@ -13,6 +14,9 @@
13
14
app = Flask(__name__)
15
app.secret_key = "secret key"
16
17
+cors = CORS(app)
18
+app.config['CORS_HEADERS'] = 'Content-Type'
19
+
20
# To upload multiple file. For example, /upload/test?apikey=xyz
21
@app.route('/upload/<dir>', methods=['POST'])
22
def upload(dir):
0 commit comments