Skip to content

Commit

Permalink
Merge pull request #49 from resum-ai/feat/login
Browse files Browse the repository at this point in the history
fix: csrf 미들웨어 차단
  • Loading branch information
yjoonjang authored Mar 28, 2024
2 parents f11ad52 + 5210fd5 commit 9595311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def kakao_callback(request):
logger.warning(f"accept: {accept}")
logger.warning(f"accept.reason: {accept.reason}")
logger.warning(f"accept.history: {accept.history}")
logger.warning(accept.content)
accept_status = accept.status_code
logger.warning(accept_status)

Expand Down
2 changes: 1 addition & 1 deletion resumai/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
# "django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
Expand Down

0 comments on commit 9595311

Please sign in to comment.