Kirk Trombley 5 years ago
parent
commit
2c092e8feb
2 changed files with 4 additions and 1 deletions
  1. 2 1
      .gitignore
  2. 2 0
      app.py

+ 2 - 1
.gitignore

@@ -1,3 +1,4 @@
 __pycache__/
 *.pyc
-secret.toml
+secret.toml
+.venv/

+ 2 - 0
app.py

@@ -6,11 +6,13 @@ from datetime import timedelta
 
 import toml
 from flask import Flask, jsonify, render_template
+from flask_cors import CORS
 
 IDLE_TIMEOUT = timedelta(minutes=5)
 REFRESH_RATE = 60 # seconds
 
 app = Flask(__name__)
+CORS(app)
 
 
 def parse_ts_response(response):