angularjs POST 405 method not allowed
<p>I have an <strong>angularjs</strong> project that contains an oauth to github.</p>

<p>I use the <a href="https://github.com/sahat/satellizer" rel="nofollow noreferrer">satellizer plugin</a> to deal with the oauth protocol.</p>

<p>Every time I try to connect I get this error: </p>

<p><a href="https://i.stack.imgur.com/8C9cJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8C9cJ.png" alt="enter image description here"></a></p>

<p>Here is my route config (it's ES6 using Babel) :</p>

<pre><code>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: '/'
    });
}
</code></pre>

<p>I tested the app using Postman, all the GET requests work fine but every POST request returns a 405.</p>

<p>I use <a href="https://www.npmjs.com/package/live-server" rel="nofollow noreferrer">live-server</a> to host my angularJS application. I've read that the issue might be server-related. How can I solve that ? </p>

<p>I also use <strong>npm</strong> to deal with the packages. </p>

<p>**EDIT : ** I tried with <a href="https://www.npmjs.com/package/simplehttpserver" rel="nofollow noreferrer">simplehttpserver</a> here is what I got: </p>

<p><a href="https://i.stack.imgur.com/P0yZf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P0yZf.png" alt="enter image description here"></a></p>