fixed cookie settings for stage server
This commit is contained in:
parent
784728d155
commit
61fc78eeb9
|
|
@ -67,7 +67,7 @@ class JWTGenericViewMixin(generics.GenericAPIView):
|
|||
# todo: remove config for develop
|
||||
from os import environ
|
||||
configuration = environ.get('SETTINGS_CONFIGURATION', None)
|
||||
if configuration == 'development':
|
||||
if configuration == 'development' or configuration == 'stage':
|
||||
response.set_cookie(key=cookie.key,
|
||||
value=cookie.value,
|
||||
secure=cookie.secure,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user