@@ -169,7 +169,7 @@ export default class WebDavAdapter extends CachingAdapter {
169169 if ( Capacitor . getPlatform ( ) === 'web' ) {
170170 res = await fetch ( fullUrl , {
171171 method : 'DELETE' ,
172- credentials : 'omit' ,
172+ credentials : this . server . includeCredentials ? 'include' : 'omit' ,
173173 headers : {
174174 Authorization : 'Basic ' + authString
175175 } ,
@@ -404,7 +404,7 @@ export default class WebDavAdapter extends CachingAdapter {
404404 'Content-Type' : content_type ,
405405 Authorization : 'Basic ' + authString
406406 } ,
407- credentials : 'omit' ,
407+ credentials : this . server . includeCredentials ? 'include' : 'omit' ,
408408 signal : this . abortSignal ,
409409 ...( ! this . server . allowRedirects && { redirect : 'manual' } ) ,
410410 body : data ,
@@ -483,7 +483,7 @@ export default class WebDavAdapter extends CachingAdapter {
483483 Depth : '0' ,
484484 } ,
485485 cache : 'no-store' ,
486- credentials : 'omit' ,
486+ credentials : this . server . includeCredentials ? 'include' : 'omit' ,
487487 signal : this . abortSignal ,
488488 ...( ! this . server . allowRedirects && { redirect : 'manual' } )
489489 } )
@@ -556,7 +556,7 @@ export default class WebDavAdapter extends CachingAdapter {
556556 Authorization : 'Basic ' + authString
557557 } ,
558558 cache : 'no-store' ,
559- credentials : 'omit' ,
559+ credentials : this . server . includeCredentials ? 'include' : 'omit' ,
560560 signal : this . abortSignal ,
561561 ...( ! this . server . allowRedirects && { redirect : 'manual' } )
562562 } )
0 commit comments