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