Skip to content

Commit 97dfc75

Browse files
authored
fix: credentials for multipart for cross-origin (#2361)
1 parent 7bde143 commit 97dfc75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/api/streaming.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export class StreamingAPI extends BaseYdbAPI {
6464
method: 'POST',
6565
signal: options.signal,
6666
headers,
67+
credentials: this._axios.defaults.withCredentials ? 'include' : 'same-origin',
6768
body: JSON.stringify(body),
6869
});
6970

0 commit comments

Comments
 (0)