From 74a821104f34e9d5a43a09fea18e7152e8d167ea Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 21 May 2019 17:00:14 +0200 Subject: [PATCH] trying to fixe axios request auth_basic --- web/themes/custom/materiotheme/assets/dist/main.js | 2 +- web/themes/custom/materiotheme/vuejs/api/rest-axios.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/themes/custom/materiotheme/assets/dist/main.js b/web/themes/custom/materiotheme/assets/dist/main.js index 35b378a..0fa6657 100644 --- a/web/themes/custom/materiotheme/assets/dist/main.js +++ b/web/themes/custom/materiotheme/assets/dist/main.js @@ -742,7 +742,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.REST = void 0;\n\nvar _axios = _interopRequireDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js\n// console.log('drupalSettings', drupalSettings);\nvar REST = _axios.default.create({\n baseURL: window.location.origin,\n withCredentials: true,\n headers: {\n Authorization: 'Bearer {token}',\n \"Content-Type\": \"application/json\"\n }\n});\n\nexports.REST = REST;\n\n//# sourceURL=webpack:///./web/themes/custom/materiotheme/vuejs/api/rest-axios.js?"); +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.REST = void 0;\n\nvar _axios = _interopRequireDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js\n// console.log('drupalSettings', drupalSettings);\nvar REST = _axios.default.create({\n baseURL: window.location.origin,\n withCredentials: true,\n headers: {\n // Authorization: 'Bearer {token}',\n \"Content-Type\": \"application/json\"\n }\n});\n\nexports.REST = REST;\n\n//# sourceURL=webpack:///./web/themes/custom/materiotheme/vuejs/api/rest-axios.js?"); /***/ }), diff --git a/web/themes/custom/materiotheme/vuejs/api/rest-axios.js b/web/themes/custom/materiotheme/vuejs/api/rest-axios.js index f204c7f..471016d 100644 --- a/web/themes/custom/materiotheme/vuejs/api/rest-axios.js +++ b/web/themes/custom/materiotheme/vuejs/api/rest-axios.js @@ -8,7 +8,7 @@ export const REST = axios.create({ baseURL: window.location.origin, withCredentials: true, headers: { - Authorization: 'Bearer {token}', + // Authorization: 'Bearer {token}', "Content-Type": "application/json" } })