We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4599d82 commit aad91b4Copy full SHA for aad91b4
templates/flutter/lib/client.dart.twig
@@ -90,7 +90,7 @@ class Client {
90
cookieJar = new PersistCookieJar(dir:cookieDir.path);
91
this.http.interceptors.add(CookieManager(cookieJar));
92
PackageInfo packageInfo = await PackageInfo.fromPlatform();
93
- addHeader('Origin', 'appwrite-$type://${packageInfo.packageName}');
+ addHeader('Origin', 'appwrite-$type://${packageInfo.packageName ?? packageInfo.appName}');
94
}else{
95
// if web set httpClientAdapter as BrowserHttpClientAdapter with withCredentials true to make cookies work
96
this.http.options.extra['withCredentials'] = true;
0 commit comments