node.js - angularjs POST 405 method not allowed -
i have angularjs project contains oauth github.
i use satellizer plugin deal oauth protocol.
every time try connect error:
here 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 app using postman, requests work fine every post request returns 405.
i use live-server host angularjs application. i've read issue might server-related. how can solve ?
i use npm deal packages.
**edit : ** tried simplehttpserver here got:
well seems http post call somewhere in application. , send request
http://localhost:8080/src/auth/callback
as seems there no server listening - or @ least not post request. have find http request in code , check whether you're using correct url request
Comments
Post a Comment