Fixed issue where hardcoded localhost:port combination existed in Javascript, added another step to setup.py 'package' that removes

such instances and creates a more agnostic javascript blob.
This commit is contained in:
kevgliss
2015-07-19 19:04:42 -07:00
parent 8e0e22d49d
commit 5ce3f9427b
4 changed files with 15 additions and 3 deletions

View File

@ -62,7 +62,7 @@ lemur.controller('datePickerController', function ($scope, $timeout){
lemur.factory('LemurRestangular', function (Restangular, $location, $auth) {
return Restangular.withConfig(function (RestangularConfigurer) {
RestangularConfigurer.setBaseUrl('http://127.0.0.1:5000/api/1');
RestangularConfigurer.setBaseUrl('http://localhost:5000/api/1');
RestangularConfigurer.setDefaultHttpFields({withCredentials: true});
RestangularConfigurer.addResponseInterceptor(function (data, operation, what, url, response, deferred) {