Safe way to authentication users with REST
Probably because you're a header, should be like this:





{ 
    "_links": {
        "type": { 
            "href": "https://yoursite.com/rest/type/node/article"
    }
  },
  "title": [{"value": "test title"}],
  "body": [{"value": "test body"}]
}