aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/api')
-rw-r--r--vnext/src/api/index.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js
index aa0ddc6e..a6a6208c 100644
--- a/vnext/src/api/index.js
+++ b/vnext/src/api/index.js
@@ -71,10 +71,13 @@ const client = axios.create({
baseURL: apiBaseUrl
});
client.interceptors.request.use(config => {
- let cookies = new Cookies();
- config.params = Object.assign(config.params || {}, {
- hash: cookies.get('hash')
- });
+ if (config.url.startsWith('/')) {
+ // only local URLs
+ let cookies = new Cookies();
+ config.params = Object.assign(config.params || {}, {
+ hash: cookies.get('hash')
+ });
+ }
return config;
});