Hi,
My angular 1.1.1 app is working well, but I recently updated Tomcat7 to the
latest version and am now using jdk1.8.
The app works fine with https://servername.domain.com/appname/index.html
but never even gets started with
https://1.1.1.1/appname/index-special.html
Inside of the index and index-special I load a config.js or
config-special.js with a getBaseURL function that returns either the
servername or ipaddress - as some clients are within the company network,
and some outside with no dns access.
function getURL(){
return 'https://1.1.1.1:443\:443/appname/v1';
}
or
function getURL(){
return 'https://servername:443\:443/appname/v1';
}
var App = angular.module('myApp',
[ 'ngGrid',
'myApp.filters',
'myApp.services',
'myApp.directives', 'ui'
]
);
App.constant('baseURL',getURL());
App.config(
[
'$routeProvider',
'$httpProvider',
function ($routeProvider, $httpProvider) {
// Servername url request gets here just fine
// IP url request does not.
Can't figure out why the ip address isn't working. It used to, prior to
the update. I have a Corsfilter and it is being used for both requests, so
I don't think that is it...could be wrong though.
Any help is greatly appreciated.
Thanks,
Steven
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.