Skip to content

Commit

Permalink
fixed loading config
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebyshev committed Feb 29, 2024
1 parent 9d74c8f commit 3ee844b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shvatka/api/config/parser/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ def load_auth(dct: dict) -> AuthConfig:
samesite=dct["samesite"],
secure=bool(dct["secure"]),
httponly=bool(dct["httponly"]),
disable_cors=bool(dct["disable-cors"]),
disable_cors=bool(dct.get("disable-cors", False)),
)

0 comments on commit 3ee844b

Please sign in to comment.