Merge branch 'develop' into feature/authorization
This commit is contained in:
commit
4289b01a19
|
|
@ -14,6 +14,9 @@ from rest_framework_simplejwt import tokens
|
|||
class JWTGenericViewMixin(generics.GenericAPIView):
|
||||
"""JWT view mixin"""
|
||||
|
||||
LOCALE_HTTP_ONLY = False
|
||||
LOCALE_SECURE = False
|
||||
|
||||
ACCESS_TOKEN_HTTP_ONLY = False
|
||||
ACCESS_TOKEN_SECURE = False
|
||||
|
||||
|
|
@ -54,8 +57,8 @@ class JWTGenericViewMixin(generics.GenericAPIView):
|
|||
# Create locale namedtuple
|
||||
_locale = self.COOKIE(key='locale',
|
||||
value=locale,
|
||||
http_only=True,
|
||||
secure=False)
|
||||
http_only=self.LOCALE_HTTP_ONLY,
|
||||
secure=self.LOCALE_SECURE)
|
||||
|
||||
# Write to cookie access and refresh token with secure flag
|
||||
if access_token and refresh_token:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user