mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 14:11:54 +00:00
set headers
This commit is contained in:
parent
370f5fe5f8
commit
c4d1a3a736
@ -43,6 +43,7 @@ define(['underscore', 'mifosX'], function() {
|
||||
return list.concat(_.map(components[group], function(name) { return group + "/" + name; }));
|
||||
}, [
|
||||
'routes',
|
||||
'setHeaders',
|
||||
'webstorage-configuration'
|
||||
]));
|
||||
});
|
||||
|
||||
9
js/setHeaders.js
Normal file
9
js/setHeaders.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function(mifosX) {
|
||||
var defineHeaders = function($httpProvider) {
|
||||
$httpProvider.defaults.headers.common['X-Mifos-Platform-TenantId'] = 'default';
|
||||
$httpProvider.defaults.headers.common['Content-Type'] = 'application/json; charset=utf-8';
|
||||
};
|
||||
mifosX.ng.application.config(defineHeaders).run(function($log) {
|
||||
$log.info("http deaders are set");
|
||||
});
|
||||
}(mifosX || {}));
|
||||
Loading…
Reference in New Issue
Block a user