Skip to content

Commit

Permalink
adds withCredentials to one more part
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Jul 13, 2019
1 parent 4b3d376 commit b4e2001
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ AuthHttpRequest.makeSuper = axiosInstance => {
config => {
// we create an instance since we don't want to intercept this.
const instance = axios.create();
config = Object.assign({}, config, { withCredentials: true });
return instance(config);
},
config,
Expand Down
4 changes: 4 additions & 0 deletions axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ export default class AuthHttpRequest {
(config: AxiosRequestConfig) => {
// we create an instance since we don't want to intercept this.
const instance = axios.create();
config = {
...config,
withCredentials: true
};
return instance(config);
},
config,
Expand Down

0 comments on commit b4e2001

Please sign in to comment.