From 02fc093ce89b8ea109f47d2dcae644a08325ae39 Mon Sep 17 00:00:00 2001 From: Rishabh Poddar Date: Sun, 14 Jul 2019 02:37:09 +0530 Subject: [PATCH] bumps version --- CHANGELOG.md | 4 ++++ axios.js | 1 - axios.ts | 4 ---- package.json | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48369e4d..5f58d65d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [3.0.3] - 2019-07-14 +### Changed +- Adds support for api on a different domain (as long as there is a shared sub domain between currently loaded page and API) - via setting withCredentials to true. + ## [3.0.2] - 2019-07-10 ### Changed - makeSuper is now a part of the default import diff --git a/axios.js b/axios.js index 48355ec0..359e3659 100644 --- a/axios.js +++ b/axios.js @@ -286,7 +286,6 @@ 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, diff --git a/axios.ts b/axios.ts index 45eb0329..a5a15ebe 100644 --- a/axios.ts +++ b/axios.ts @@ -299,10 +299,6 @@ 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, diff --git a/package.json b/package.json index e3b1751b..9e369ba8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "supertokens-website", - "version": "3.0.2", + "version": "3.0.3", "description": "frontend sdk for website to be used for auth solution.", "main": "index.js", "dependencies": {