diff --git a/server/ulm_cine_club_api/settings.py b/server/ulm_cine_club_api/settings.py index 6c74b3f..f000e8e 100644 --- a/server/ulm_cine_club_api/settings.py +++ b/server/ulm_cine_club_api/settings.py @@ -138,3 +138,14 @@ REST_FRAMEWORK = { "djangorestframework_camel_case.parser.CamelCaseJSONParser", ), } + +BASE_URL = "http://localhost:8000/" + +FRONT_END_URL = "http://localhost:3000" +SESSION_COOKIE_SAMESITE = None +CORS_ALLOWED_ORIGINS = ["http://localhost:3000", "http://127.0.0.1:3000"] +CORS_ALLOW_CREDENTIALS = True + +CORS_ORIGIN_WHITELIST = ("http://localhost:3000",) + +CSRF_TRUSTED_ORIGINS = ["http://localhost:3000"]