Skip to content

Commit fad13d1

Browse files
author
EC2 Default User
committed
Enable CORS and update backend
1 parent 46aeaee commit fad13d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
import openai
1111
import sys
1212
from datetime import datetime
13+
from flask_cors import CORS
1314

1415
app = Flask(__name__, static_folder="static", template_folder="../frontend")
16+
CORS(app)
1517
@app.route("/")
1618
def home():
1719
return render_template("index.html", summary="", log="", forecast="", plot_url=None)

0 commit comments

Comments
 (0)