File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -387,9 +387,12 @@ class Client {
387
387
let options: RequestInit = {
388
388
method,
389
389
headers,
390
- credentials: 'include'
391
390
};
392
391
392
+ if (headers['X-Appwrite-Dev-Key'] === undefined) {
393
+ options.credentials = 'include';
394
+ }
395
+
393
396
if (method === 'GET') {
394
397
for (const [key, value] of Object.entries(Service.flatten(params))) {
395
398
url.searchParams.append(key, value);
Original file line number Diff line number Diff line change @@ -588,9 +588,12 @@ class Client {
588
588
let options: RequestInit = {
589
589
method,
590
590
headers,
591
- credentials: 'include',
592
591
};
593
592
593
+ if (headers['X-Appwrite-Dev-Key'] === undefined) {
594
+ options.credentials = 'include';
595
+ }
596
+
594
597
if (method === 'GET') {
595
598
for (const [key, value] of Object.entries(Client.flatten(params))) {
596
599
url.searchParams.append(key, value);
You can’t perform that action at this time.
0 commit comments