add flask cors

This commit is contained in:
Ali Abid 2020-09-25 15:44:41 -07:00
parent 48666ca442
commit 1dca0c4029
4 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import os
import socket
import threading
from flask import Flask, request, jsonify, abort, send_file, render_template
from flask_cors import CORS
import threading
import pkg_resources
from distutils import dir_util
@ -35,6 +36,7 @@ app = Flask(__name__,
template_folder=STATIC_TEMPLATE_LIB,
static_folder=None) # TODO (aliabid94): replace with default static
# handler
CORS(app)
app.app_globals = {}
# Hide Flask default message

View File

@ -1,6 +1,7 @@
numpy
requests
flask
flask-cors
paramiko
scipy
IPython

View File

@ -6,6 +6,7 @@ import os
import socket
import threading
from flask import Flask, request, jsonify, abort, send_file, render_template
from flask_cors import CORS
import threading
import pkg_resources
from distutils import dir_util
@ -35,6 +36,7 @@ app = Flask(__name__,
template_folder=STATIC_TEMPLATE_LIB,
static_folder=None) # TODO (aliabid94): replace with default static
# handler
CORS(app)
app.app_globals = {}
# Hide Flask default message

View File

@ -17,6 +17,7 @@ setup(
'numpy',
'requests',
'flask',
'flask-cors',
'paramiko',
'scipy',
'IPython',