Why would httpx not store cookies if a "set-cookie" header is present in the response? #2825
Answered
by
euri10
aaronsgithub
asked this question in
Q&A
-
In a FastAPI app, running on localhost, I have in one of my routes:
In the browser, I see the "Set-Cookie" header in the response, and also the cookie being stored in Devtools in the Application Tab under Cookies. In httpx, I have:
The cookies are empty. Can anyone help me understand why that might be? Many thanks in advance 🫡 |
Beta Was this translation helpful? Give feedback.
Answered by
euri10
Aug 25, 2023
Replies: 1 comment 1 reply
-
you may have the answer here: https://stackoverflow.com/questions/1134290/cookies-on-localhost-with-explicit-domain |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
aaronsgithub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you may have the answer here: https://stackoverflow.com/questions/1134290/cookies-on-localhost-with-explicit-domain