From 6c92f6425626cf980a82fa319b7be86b4d3dbbe4 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Wed, 2 Oct 2024 22:38:04 +0100 Subject: [PATCH] fix(web): credentials include --- README.md | 2 +- package.json | 2 +- src/client.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b9797a2..43b411f 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ import { Client, Account } from "appwrite"; To install with a CDN (content delivery network) add the following scripts to the bottom of your tag, but before you use any Appwrite services: ```html - + ``` diff --git a/package.json b/package.json index 1046d68..88e6d4f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "appwrite", "homepage": "https://appwrite.io/support", "description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API", - "version": "16.0.1", + "version": "16.0.2", "license": "BSD-3-Clause", "main": "dist/cjs/sdk.js", "exports": { diff --git a/src/client.ts b/src/client.ts index 283a5b5..d434c64 100644 --- a/src/client.ts +++ b/src/client.ts @@ -303,7 +303,7 @@ class Client { 'x-sdk-name': 'Web', 'x-sdk-platform': 'client', 'x-sdk-language': 'web', - 'x-sdk-version': '16.0.1', + 'x-sdk-version': '16.0.2', 'X-Appwrite-Response-Format': '1.6.0', }; @@ -589,6 +589,7 @@ class Client { let options: RequestInit = { method, headers, + credentials: 'include', }; if (method === 'GET') {