I have an angularjs project that contains an oauth to github.
I use the satellizer plugin to deal with the oauth protocol.
Every time I try to connect I get this error:
Here is my route config (it's ES6 using Babel) :
export default function RouteConfig($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: './modules/default/default.html',
controller: 'DefaultController',
controllerAs: 'default'
})
.when('/auth/:provider',{
controller: 'OAuthController',
templateUrl: './modules/auth/auth.html',
})
.otherwise({
redirectTo: '/'
});
}
I tested the app using Postman, all the GET requests work fine but every POST request returns a 405.
I use live-server to host my angularJS application. I've read that the issue might be server-related. How can I solve that ?
I also use npm to deal with the packages.
**EDIT : ** I tried with simplehttpserver here is what I got: