-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Enable all CORS origins (#44) * chore: Remove origins environment variable * fix: Enable all origins in CORS config
- Loading branch information
1 parent
8417cac
commit 325be03
Showing
7 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import flask | ||
from flask_cors import CORS | ||
from src.views import views | ||
from src.config.environment import variables | ||
|
||
app = flask.Flask(__name__) | ||
app.register_blueprint(views) | ||
|
||
allowed_origins_list = variables["ALLOWED_ORIGINS"].split(",") | ||
|
||
CORS(app, resources={r"/*": {"origins": allowed_origins_list}}) | ||
CORS(app, resources={r"/*": {"origins": "*"}}) | ||
|
||
if __name__ == "__main__": | ||
app.run(debug=True) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"git-semver-tags": "^4.1.1", | ||
"standard-version": "^9.5.0" | ||
}, | ||
"version": "0.0.9" | ||
"version": "0.0.11" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters