I have an AngularJS front end SPA trying to use a backend API with
identity, Entity Framework, and CORS. I have the following code in the
app.js file called initially. I am getting the error : Failed to load
resource: net::ERR_CONNECTION_REFUSED http://localhost:22316/token
. In trying to store the token on local host. What am I doing wrong?
var app = angular.module('testAuthenticationAPI', ['ngRoute',
'LocalStorageModule', 'angular-loading-bar']);
app.config(function ($routeProvider) {
});
$routeProvider.when("/index", {
controller: "indexController",
templateUrl: "/app/views/index.html"
});
});
var serviceBase = 'http://localhost:22316/';
app.constant('ngAuthSettings', {
apiServiceBaseUri: serviceBase,
clientId: 'ngAuth'
});
--
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.