Skip to content
Snippets Groups Projects
Commit ed264c1d authored by Erik Reid's avatar Erik Reid
Browse files

add CORS

parent a0a0b144
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ automatically invoked app factory
import logging
import os
from flask import Flask
from flask_cors import CORS
from inventory_provider import environment
......@@ -34,6 +35,8 @@ def create_app():
inventory_provider_config = config.load(f)
app = Flask(__name__)
CORS(app)
app.secret_key = 'super secret session key'
logging.info(
......
......@@ -4,6 +4,7 @@ pysnmp
jsonschema==3.2.0
paramiko
flask
flask-cors
redis==3.2.1
kombu==4.5.0
vine==1.3.0
......
......@@ -16,6 +16,7 @@ setup(
'jsonschema==3.2.0',
'paramiko',
'flask',
'flask-cors',
'redis==3.2.1',
'kombu==4.5.0',
'vine==1.3.0',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment