Skip to content

Commit a46f5df

Browse files
committed
add fallback cookie immediately
1 parent df54a31 commit a46f5df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/flutter/lib/client.dart.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ class Client {
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.');
164164
prefs.setString('cookieFallback', cookieFallback);
165+
addHeader('X-Fallback-Cookies',cookieFallback);
165166
}
166167
}
167168
return res;

0 commit comments

Comments
 (0)