Change settings

This commit is contained in:
jhyns 2023-06-23 02:09:19 +09:00
parent bfe201ae29
commit e735ebba32
2 changed files with 4 additions and 0 deletions

View File

@ -143,3 +143,5 @@ REST_FRAMEWORK = {
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination", "DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination",
"PAGE_SIZE": 20, "PAGE_SIZE": 20,
} }
SESSION_COOKIE_HTTPONLY = False

View File

@ -8,6 +8,8 @@ ALLOWED_HOSTS = ["*"]
CORS_ALLOW_ALL_ORIGINS = True CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_CREDENTIALS = True
CSRF_TRUSTED_ORIGINS = ["http://localhost:5173"]
# Database # Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases # https://docs.djangoproject.com/en/4.2/ref/settings/#databases