Skip to content

Commit bcbc806

Browse files
committed
add to header before saving
1 parent a46f5df commit bcbc806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/flutter/lib/client.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ class Client {
161161
final cookieFallback = res.headers.value('X-Fallback-Cookies');
162162
if(cookieFallback != null) {
163163
print('Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.');
164-
prefs.setString('cookieFallback', cookieFallback);
165164
addHeader('X-Fallback-Cookies',cookieFallback);
165+
prefs.setString('cookieFallback', cookieFallback);
166166
}
167167
}
168168
return res;

0 commit comments

Comments
 (0)