Skip to content

Commit

Permalink
Fix CORS_ALLOW_ALL_ORIGINS setting error when create migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwizi committed Apr 24, 2024
1 parent 0646d92 commit 62848aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cs2-battle-bot-api"
version = "0.0.31"
version = "0.0.32"
description = ""
authors = ["Adrian Ciolek <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/cs2_battle_bot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

ALLOWED_HOSTS = ["*"]
CORS_ALLOWED_ORIGINS = os.environ.get("CORS_ALLOWED_ORIGINS", "http://localhost:8002").split(",")
CORS_ALLOW_ALL_ORIGINS = os.environ.get("CORS_ALLOW_ALL_ORIGINS", True)
CORS_ALLOW_ALL_ORIGINS = os.environ.get("CORS_ALLOW_ALL_ORIGINS", "True") == "True"
CSRF_TRUSTED_ORIGINS = os.environ.get(
"CSRF_TRUSTED_ORIGINS", "http://localhost:8002"
).split(",")
Expand Down

0 comments on commit 62848aa

Please sign in to comment.