Fail to perform localhost POST call using postman (play framework 2.6)

Viewed 998

Its so weird, im testing my app controller methods on localhost:9000 using postman, for my GET api methods I have no problem access and get response, but for a POST api methods im getting:

play.filters.CSRF - [CSRF] Check failed because no token found in headers

never seeen this message...

I have the simplest controller:

 def invoiceQA(): Action[JsValue] = Action.async(parse.json) { request =>
    Future{Ok(Json.toJson("""{"message": "got your json"}"""))}
  }

my route:

POST    /update    controllers.MyController.update

in postman im getting 403 forbidden..

postman address:

http://localhost:9000/update

does someone know why is that..?

1 Answers
Related