Skip to content

Commit

Permalink
Feat: 미들웨어 세분화로 인한 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
fnzksxl committed Sep 19, 2024
1 parent 04cbf52 commit e842ac4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wtnt/wtnt/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

from corsheaders.defaults import default_headers

CORS_ALLOW_HEADERS = list(default_headers) + ["x-from"]
CORS_ALLOW_HEADERS = list(default_headers) + ["x-from", "x-admin", "x-debug"]
CSRF_TRUSTED_ORIGINS = ["https://api.whatmeow.shop"]
AUTH_USER_MODEL = "user.CustomUser"

Expand Down Expand Up @@ -128,7 +128,10 @@
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"allauth.account.middleware.AccountMiddleware",
"core.middleware.AttachJWTFromHeaderToCookieMiddleware",
"core.middleware.CustomLoginMiddleware",
"core.middleware.CustomRegisterMiddleware",
"core.middleware.CustomRefreshMiddleware",
"core.middleware.CustomLogoutMiddleware",
"debug_toolbar.middleware.DebugToolbarMiddleware",
]

Expand Down

0 comments on commit e842ac4

Please sign in to comment.