rest.nvim icon indicating copy to clipboard operation
rest.nvim copied to clipboard

No longer working with cookies.

Open bushblade opened this issue 10 months ago • 0 comments

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:

Screenshot_2024-04-18_12-09-51

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.

bushblade avatar Apr 18 '24 11:04 bushblade