Skip to content

Commit

Permalink
Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronnie5562 committed Aug 2, 2024
1 parent a986c6c commit 758e5c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docnet_backend/docnet_backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@
"ACCESS_TOKEN_NAME": "access",
"REFRESH_TOKEN_NAME": "refresh",
"JWT_COOKIE_SAMESITE": "Lax", # Use None for cross-site requests (Lax)
"JWT_COOKIE_SECURE": True, # Ensure cookies are sent over HTTPS
"JWT_COOKIE_SECURE": False, # Ensure cookies are sent over HTTPS
}

# Cookie settings
SESSION_COOKIE_SAMESITE = 'Lax'
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SAMESITE = 'Lax'
CSRF_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = False

0 comments on commit 758e5c8

Please sign in to comment.