File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def cookie_secure(self):
6767
6868 @property
6969 def cookie_domain (self ):
70- return current_app .config . get ( 'JWT_COOKIE_DOMAIN' , None )
70+ return current_app .config [ 'JWT_COOKIE_DOMAIN' ]
7171
7272 @property
7373 def session_cookie (self ):
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ def _set_default_configuration_options(app):
119119 app .config .setdefault ('JWT_ACCESS_COOKIE_PATH' , '/' )
120120 app .config .setdefault ('JWT_REFRESH_COOKIE_PATH' , '/' )
121121 app .config .setdefault ('JWT_COOKIE_SECURE' , False )
122+ app .config .setdefault ('JWT_COOKIE_DOMAIN' , None )
122123 app .config .setdefault ('JWT_SESSION_COOKIE' , True )
123124
124125 # Options for using double submit csrf protection
You can’t perform that action at this time.
0 commit comments