I have a bizarre issue with Drupal's REST API that I can't work out.
The exact same POST to /user/login?_format=json does NOT work in Postman (error 403 Forbidden) but with same parameters it works correctly in CURL.
This Curl works: curl --header "Content-type: application/json" --request POST --data '{"name":"bobo", "pass":"xxx"}' http://[domain]/user/login?_format=json
I get back json with the uid, name, a csrf token, logout token and any roles.
Now in Postman, I select Post, my url is "http://[domain]/user/login?_format=json" for header i select 'Content-Type' and value 'application/json' and paste the {"name":"bobo", "pass":"xxx"} section into 'raw' under body.
Now I get 403 Forbidden and response: {"message":""}
Is there a setting in Postman I'm missing or is this a bug somewhere?? It seems utterly bizarre to me.