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:

enter image description here

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:

enter image description here

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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -