From 9762c5f7227cef5d953452216dcced6014aa4aad Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Mon, 20 Feb 2017 09:35:22 +0000 Subject: Create Test Reporting landing page JIRA: RELENG-165 In this patch, I upload the backend code usage: docker run -itd -p 8000:8000 -e SERVER_URL=server_ip:8000 opnfv/reporting: note: must point SERVER_URL, it is the api server. visit landing page: http://server_ip:8000/reporting/index.html Change-Id: I10121574e0c4b2733a8084c986d7a2746e7ce2a4 Signed-off-by: chenjiankun --- reporting/pages/app/scripts/config.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'reporting/pages/app/scripts/config.js') 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 -- cgit 1.2.3-korg