Skip to content

Commit 251b054

Browse files
fix staging build (#124)
* fix: Improve error logging in Google OAuth callback and update cookie domain settings for staging * feat: Add fix-staging-build branch to deployment triggers * fix: Update SameSite attribute for cookies to 'Strict' for improved security * fix: Remove 'fix-staging-build' branch from deployment triggers * fix: Remove error logging from Google OAuth callback * fix: Remove exception details from GoogleCallbackView error handling
1 parent b9ec530 commit 251b054

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

todo_project/settings/staging.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434

3535
GOOGLE_COOKIE_SETTINGS.update(
3636
{
37-
"COOKIE_DOMAIN": "staging-todo.realdevsquad.com",
37+
"COOKIE_DOMAIN": "realdevsquad.com",
3838
"COOKIE_SECURE": True,
39-
"COOKIE_SAMESITE": "None",
39+
"COOKIE_SAMESITE": "Strict",
4040
}
4141
)
4242

4343
MAIN_APP.update(
4444
{
45-
"RDS_BACKEND_BASE_URL": f"{BASE_URL}{SERVICE_DOMAINS['RDS_API']}",
45+
"RDS_BACKEND_BASE_URL": f"{BASE_URL}{SERVICE_DOMAINS['RDS_API']}/staging-todo",
4646
}
4747
)
4848

@@ -69,8 +69,8 @@
6969
# Security settings for staging
7070
SECURE_SSL_REDIRECT = False
7171
SESSION_COOKIE_SECURE = True
72-
SESSION_COOKIE_DOMAIN = "staging-todo.realdevsquad.com"
73-
SESSION_COOKIE_SAMESITE = "None"
72+
SESSION_COOKIE_DOMAIN = "realdevsquad.com"
73+
SESSION_COOKIE_SAMESITE = "Strict"
7474
CSRF_COOKIE_SECURE = True
7575

7676
SPECTACULAR_SETTINGS.update(

0 commit comments

Comments
 (0)