Skip to content

Commit

Permalink
Enable CORS for webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
booxter committed May 17, 2024
1 parent 6dff083 commit 0f30dcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/letsrolld/webapi/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Flask
from flask_cors import CORS
from flask_restful_swagger_3 import Api, Resource, swagger
from flask_sqlalchemy import SQLAlchemy

Expand All @@ -17,6 +18,7 @@
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = db.get_db_uri()
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False # do I need this?
CORS(app)

db_ = SQLAlchemy(app)

Expand Down

0 comments on commit 0f30dcf

Please sign in to comment.