summaryrefslogtreecommitdiffstats
path: root/reporting/pages/app/scripts/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'reporting/pages/app/scripts/config.js')
-rw-r--r--reporting/pages/app/scripts/config.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/reporting/pages/app/scripts/config.js b/reporting/pages/app/scripts/config.js
index 838460a..1010169 100644
--- a/reporting/pages/app/scripts/config.js
+++ b/reporting/pages/app/scripts/config.js
@@ -7,8 +7,13 @@
* Main config file of the application.
*/
angular
- .module('opnfvApp').config(function () {
+ .module('opnfvApp').config(['$httpProvider', '$qProvider', function($httpProvider, $qProvider) {
- }
+ $httpProvider.defaults.useXDomain = true;
+ delete $httpProvider.defaults.headers.common['X-Requested-With'];
- )
+ $qProvider.errorOnUnhandledRejections(false);
+
+ }
+
+ ]); \ No newline at end of file