Skip to content

Commit

Permalink
fix: send credentials (cookie, session, etc.) with the request for sa…
Browse files Browse the repository at this point in the history
…me origin host
  • Loading branch information
Sassoun Derderian committed Jun 13, 2017
1 parent f7a850b commit 7b9c568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ export class Api {
return fetch(options.url + options.path + queryString, {
method: method,
headers: headers,
body: bodyParams
body: bodyParams,
credentials: 'same-origin'
}).then(
ResponseHandler.success,
ResponseHandler.failure
Expand Down

0 comments on commit 7b9c568

Please sign in to comment.