Ver código fonte

请求头调整

zhuth 7 anos atrás
pai
commit
9646bb5215

+ 1 - 0
frontend/saas-web/app/util/BaseUtil.js

@@ -11,6 +11,7 @@ Ext.define('saas.util.BaseUtil', {
             method = config.method || 'GET',
             timeout = config.timeout || 8000,
             defaultHeaders = {
+                'Authorization': ' ',
                 'Access-Control-Allow-Origin': '*',
                 "Content-Type": 'application/json;charset=UTF-8' 
             };

+ 0 - 3
frontend/saas-web/overrides/data/Connection.js

@@ -14,9 +14,6 @@ Ext.define('saas.override.data.Connection', {
               (!serverOptions.urlPattern || new RegExp(serverOptions.urlPattern).test(originUrl))) {
                 Ext.apply(options, {
                     url: serverOptions.basePath + (originUrl.indexOf('/') == 0 ? '' : '/') + originUrl,
-                    headers: {
-                        'Authorization': ' '
-                    }
                 });
             }
         }