fixed cookie settings for stage server

This commit is contained in:
Anatoly 2019-09-18 11:28:00 +03:00
parent 784728d155
commit 61fc78eeb9

View File

@ -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,