thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.62k stars 128 forks source link

set-cookie from server supports or not? #1549

Closed ivanafanasyeu closed 4 months ago

ivanafanasyeu commented 4 months ago

Question: I'm setting cookies in golang, echo v4:

    cookie := new(http.Cookie)
    cookie.Name = "Authorization"
    cookie.Value = tokenString
    cookie.Expires = time.Now().Add(24 * time.Hour)
    cookie.HttpOnly = true
    c.SetCookie(cookie)

I'm doing /api/login and in response I have authorization cookies. Screenshot 2024-05-26 at 14 57 42 Screenshot 2024-05-26 at 14 58 00 But I don't see any cookies in the get request, meanwhile if I click manage cookies, they are there Screenshot 2024-05-26 at 14 58 49

Anything I'm missing or don't understand, or this behaviour is not supported, and I need manually copy those cookies into the headers?

Are you using the free version/paid version/trial: free version

rangav commented 4 months ago

see - https://docs.thunderclient.com/

ivanafanasyeu commented 4 months ago

see - https://docs.thunderclient.com/

And where? Cookie page doesn't reveal anything about it. It says about headers, and pre scripts, but it has nothing to do with testing on real code. If I'm blind, show me please. It definitely not on the main page, and I don't see any revealing information about my particular question in the cookie section

rangav commented 4 months ago

https://docs.thunderclient.com/features/cookies

ivanafanasyeu commented 4 months ago

https://docs.thunderclient.com/features/cookies

Am I talking to AI? :) I read this, I mentioned this in the question. I know that I can set it in the headers directly, I'm talking about me making a request to my golang application, where I can observe that set-cookie is set to http only cookies, I can see them in manage cookies, but I don't have access, until I set them manually in the ways it says. Which if we are talking about real browser\server behaviour would work. And it somehow detected by thunderclient, my question any way to do it automatically , or any outwork of it, except this manual sets.

Please, I don't need a link answer, really, if it's nothing to say. Because I read the docs, and I didn't find a resolution or clear information

rangav commented 4 months ago

@ivanafanasyeu if you have more questions please post on StackOverflow for community support or purchase a paid version to get support from TC team.