Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set-cookie from server supports or not? #1549

Closed
ivanafanasyeu opened this issue May 26, 2024 · 5 comments
Closed

set-cookie from server supports or not? #1549

ivanafanasyeu opened this issue May 26, 2024 · 5 comments
Labels
question Further information is requested

Comments

@ivanafanasyeu
Copy link

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

@ivanafanasyeu ivanafanasyeu added the question Further information is requested label May 26, 2024
@rangav
Copy link
Collaborator

rangav commented May 27, 2024

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

@ivanafanasyeu
Copy link
Author

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
Copy link
Collaborator

rangav commented May 27, 2024

@ivanafanasyeu
Copy link
Author

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
Copy link
Collaborator

rangav commented May 27, 2024

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

@rangav rangav closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants