rest.nvim
rest.nvim copied to clipboard
No longer working with cookies.
The plugin no longer works with saving or using a cookie in the request.
This request used to work for me:
# Login a user
POST {{BASE_URL}}/api/users/auth
Content-Type: application/json
-c backend/http/cookies
{
"email": "[email protected]",
"password": "123456"
}
But now I get the following response:
POST http://localhost:5000/api/users/auth
HTTP/1.1 400 Bad Request
#+RES
#+END
The same request works in Postman and Insomnia and in Curl:
And if I remove the -c backend/http/cookies
then I do get a good response in rest-nvim but obviously no cookie was saved.