ecinc-cloud-mappaio 9.6.17 → 9.6.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38845,6 +38845,12 @@ service.interceptors.request.use(function (config) {
38845
38845
  if (window.VUE_APP_BASE_API) {
38846
38846
  config.baseURL = window.VUE_APP_BASE_API;
38847
38847
  }
38848
+ if (config.method === 'put' || config.method === 'delete') {
38849
+ if (window.forbidPut) {
38850
+ config.headers['X-HTTP-Method-Override'] = config.method;
38851
+ config.method = 'post';
38852
+ }
38853
+ }
38848
38854
  if (store/* default */.A.getters.token && config.url && config.url.indexOf('/login') !== 0) {
38849
38855
  // let each request carry token
38850
38856
  // ['X-Token'] is a custom headers key
@@ -38855,6 +38855,12 @@ service.interceptors.request.use(function (config) {
38855
38855
  if (window.VUE_APP_BASE_API) {
38856
38856
  config.baseURL = window.VUE_APP_BASE_API;
38857
38857
  }
38858
+ if (config.method === 'put' || config.method === 'delete') {
38859
+ if (window.forbidPut) {
38860
+ config.headers['X-HTTP-Method-Override'] = config.method;
38861
+ config.method = 'post';
38862
+ }
38863
+ }
38858
38864
  if (store/* default */.A.getters.token && config.url && config.url.indexOf('/login') !== 0) {
38859
38865
  // let each request carry token
38860
38866
  // ['X-Token'] is a custom headers key