node.js - `express` - app chrome postman giving always error instead of response -
please 1 me find issue here: when trying post username , password getting error : requester.js:6211 post http://localhost:7000/api/login 403 (forbidden)send @ requester.js:6211(anonymous function) @ requester.js:4811dispatch @ jquery.min.js:3i @ jquery.min.js:3 requester.js:1056 defining mode i don't know issue here @ all. here post man request screen shot : here api file : var user = require('../models/user'); var config = require('../../config'); var secretkey = config.secretkey; var jsonwebtoken = require("jsonwebtoken"); function createtoken ( user ) { var token = jsonwebtoken.sign({ _id : user.id, name : user.name, username: user.username }, secretkey, { expiresin : "1440m" }) return token; } module.exports = function( app, express ) { var api = express.router(); api.post('/signup', function( req, res ) { var user = new user({ name ...