Skip to content

Commit 25264bf

Browse files
committed
fix: 로컬에서 django admin 로그인이 불가능한 이슈 수정
1 parent e71c118 commit 25264bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
COOKIE_SAMESITE = "Lax" if IS_LOCAL else "None"
318318
COOKIE_SECURE = not IS_LOCAL
319319
COOKIE_HTTPONLY = True
320-
COOKIE_DOMAIN = env("COOKIE_DOMAIN", default="pycon.kr")
320+
COOKIE_DOMAIN = env("COOKIE_DOMAIN", default="pycon.kr") if not IS_LOCAL else None
321321
COOKIE_TRUSTED_ORIGIN_SET = {
322322
f"{protocol}://{domain}:{port}"
323323
for protocol in ("http", "https")

0 commit comments

Comments
 (0)