playmak3r commited on
Commit
0918613
·
1 Parent(s): 5afd42b

add cors config

Browse files
Files changed (1) hide show
  1. 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():