Skip to content

Commit

Permalink
Merge pull request #110 from appwrite/fix-web-credentials-include
Browse files Browse the repository at this point in the history
fix(web): credentials include
  • Loading branch information
stnguyen90 authored Oct 2, 2024
2 parents 6aa0c53 + 6c92f64 commit c33e480
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <body> tag, but before you use any Appwrite services:

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].1"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].2"></script>
```


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down Expand Up @@ -589,6 +589,7 @@ class Client {
let options: RequestInit = {
method,
headers,
credentials: 'include',
};

if (method === 'GET') {
Expand Down

0 comments on commit c33e480

Please sign in to comment.