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.
2 parents 1eabb3d + 1b16c17 commit 6f970f8Copy full SHA for 6f970f8
src/ign-api/run.py
@@ -2,7 +2,7 @@
2
from flask import Flask
3
from flask import jsonify, abort
4
from flask import request, send_file
5
-from flask_cors import CORS, cross_origin
+from flask_cors import CORS
6
7
from rq import Queue
8
from rq.job import Job
@@ -16,8 +16,7 @@
16
API_VERSION_URL = '/' + API_VERSION
17
18
app = Flask(__name__)
19
-cors = CORS(app)
20
-app.config['CORS_HEADERS'] = 'Content-Type'
+CORS(app, resources={r"/v1/*": {"origins": "https://ign.schroedinger-hat.org"}})
21
app.config['UPLOAD_FOLDER'] = '/tmp'
22
app.config['MAX_CONTENT_LENGTH'] = 128 * 1000 * 1000 # 128MB
23
0 commit comments