@@ -70,6 +70,7 @@ def set_access_cookies(response, encoded_access_token):
70
70
max_age = config .cookie_max_age ,
71
71
secure = config .cookie_secure ,
72
72
httponly = True ,
73
+ domain = config .cookie_domain ,
73
74
path = config .access_cookie_path )
74
75
75
76
# If enabled, set the csrf double submit access cookie
@@ -79,6 +80,7 @@ def set_access_cookies(response, encoded_access_token):
79
80
max_age = config .cookie_max_age ,
80
81
secure = config .cookie_secure ,
81
82
httponly = False ,
83
+ domain = config .cookie_domain ,
82
84
path = config .access_csrf_cookie_path )
83
85
84
86
@@ -97,6 +99,7 @@ def set_refresh_cookies(response, encoded_refresh_token):
97
99
max_age = config .cookie_max_age ,
98
100
secure = config .cookie_secure ,
99
101
httponly = True ,
102
+ domain = config .cookie_domain ,
100
103
path = config .refresh_cookie_path )
101
104
102
105
# If enabled, set the csrf double submit refresh cookie
@@ -106,6 +109,7 @@ def set_refresh_cookies(response, encoded_refresh_token):
106
109
max_age = config .cookie_max_age ,
107
110
secure = config .cookie_secure ,
108
111
httponly = False ,
112
+ domain = config .cookie_domain ,
109
113
path = config .refresh_csrf_cookie_path )
110
114
111
115
@@ -124,12 +128,14 @@ def unset_jwt_cookies(response):
124
128
expires = 0 ,
125
129
secure = config .cookie_secure ,
126
130
httponly = True ,
131
+ domain = config .cookie_domain ,
127
132
path = config .refresh_cookie_path )
128
133
response .set_cookie (config .access_cookie_name ,
129
134
value = '' ,
130
135
expires = 0 ,
131
136
secure = config .cookie_secure ,
132
137
httponly = True ,
138
+ domain = config .cookie_domain ,
133
139
path = config .access_cookie_path )
134
140
135
141
if config .csrf_protect and config .csrf_in_cookies :
@@ -138,10 +144,12 @@ def unset_jwt_cookies(response):
138
144
expires = 0 ,
139
145
secure = config .cookie_secure ,
140
146
httponly = False ,
147
+ domain = config .cookie_domain ,
141
148
path = config .refresh_csrf_cookie_path )
142
149
response .set_cookie (config .access_csrf_cookie_name ,
143
150
value = '' ,
144
151
expires = 0 ,
145
152
secure = config .cookie_secure ,
146
153
httponly = False ,
154
+ domain = config .cookie_domain ,
147
155
path = config .access_csrf_cookie_path )
0 commit comments