Skip to content

Commit

Permalink
Merge pull request #29 from Qwizi/0.0.32
Browse files Browse the repository at this point in the history
Fix CORS_ALLOW_ALL_ORIGINS setting error when create migration
  • Loading branch information
Qwizi authored Apr 24, 2024
2 parents 0646d92 + 62848aa commit 4073015
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 <ciolek.adrian@protonmail.com>"]
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 4073015

Please sign in to comment.