File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1+ import type { AxiosWrapperOptions } from '@gravity-ui/axios-wrapper' ;
12import { parseMultipart } from '@mjackson/multipart-parser' ;
23import qs from 'qs' ;
34
@@ -28,6 +29,14 @@ export interface StreamQueryOptions {
2829}
2930
3031export class StreamingAPI extends BaseYdbAPI {
32+ withCredentials ?: boolean ;
33+
34+ constructor ( options : AxiosWrapperOptions ) {
35+ super ( options ) ;
36+
37+ this . withCredentials = options . config ?. withCredentials ;
38+ }
39+
3140 async streamQuery < Action extends Actions > (
3241 params : StreamQueryParams < Action > ,
3342 options : StreamQueryOptions ,
@@ -64,6 +73,7 @@ export class StreamingAPI extends BaseYdbAPI {
6473 method : 'POST' ,
6574 signal : options . signal ,
6675 headers,
76+ credentials : this . withCredentials ? 'include' : undefined ,
6777 body : JSON . stringify ( body ) ,
6878 } ) ;
6979
You can’t perform that action at this time.
0 commit comments