Skip to content

Commit 7b9c568

Browse files
author
Sassoun Derderian
committed
fix: send credentials (cookie, session, etc.) with the request for same origin host
1 parent f7a850b commit 7b9c568

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ export class Api {
387387
return fetch(options.url + options.path + queryString, {
388388
method: method,
389389
headers: headers,
390-
body: bodyParams
390+
body: bodyParams,
391+
credentials: 'same-origin'
391392
}).then(
392393
ResponseHandler.success,
393394
ResponseHandler.failure

0 commit comments

Comments
 (0)