From e735ebba32c3755be82cb1c4f1b57131a8ba1632 Mon Sep 17 00:00:00 2001 From: jhyns Date: Fri, 23 Jun 2023 02:09:19 +0900 Subject: [PATCH] Change settings --- config/settings/base.py | 2 ++ config/settings/local.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config/settings/base.py b/config/settings/base.py index c4630b3..0890cb5 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -143,3 +143,5 @@ REST_FRAMEWORK = { "DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination", "PAGE_SIZE": 20, } + +SESSION_COOKIE_HTTPONLY = False diff --git a/config/settings/local.py b/config/settings/local.py index def46a8..16e677c 100644 --- a/config/settings/local.py +++ b/config/settings/local.py @@ -8,6 +8,8 @@ ALLOWED_HOSTS = ["*"] CORS_ALLOW_ALL_ORIGINS = True CORS_ALLOW_CREDENTIALS = True +CSRF_TRUSTED_ORIGINS = ["http://localhost:5173"] + # Database # https://docs.djangoproject.com/en/4.2/ref/settings/#databases