Skip to content

Commit

Permalink
💚 fix: update cors
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Oct 19, 2023
1 parent 47dade9 commit 9e82f3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apis/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ def authentication():
In addition, it handles error handling of expired token and non existed users"""
g.user = None

print(request.cookies.get("token"))

if "token" not in request.cookies:
return
token: str = (
Expand Down
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def create_app(config_module=None):
"/*": {
"origins": [
"http://localhost:3000",
"https://brave-ground-*.centralus.2.azurestaticapps.net",
"https://staging.fairhub.io",
],
}
},
Expand Down

0 comments on commit 9e82f3e

Please sign in to comment.