Skip to content

Commit e54c852

Browse files
committed
Enable CORS
1 parent b8d9760 commit e54c852

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
from flask import Flask, render_template, request, send_file, Response, jsonify
4141
from flask_babel import Babel
42+
from flask_cors import CORS
4243
from werkzeug.datastructures import Headers
4344
#from flask_sockets import Sockets
4445

@@ -64,6 +65,7 @@
6465
conv = None
6566

6667
app = Flask(__name__, static_url_path="")
68+
CORS(app)
6769
#app.config.from_pyfile('coderbot.cfg')
6870
babel = Babel(app)
6971
app.debug = False

0 commit comments

Comments
 (0)