You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a request (with Follow redirectsdisabled) to originaldomain.com results in a response with
Location: otherdomain.com
Set-Cookie: foo=bar
I expect the foo=bar cookie is set with domain originaldomain.com.
Actual Behavior
When a request (with Follow redirectsdisabled) to originaldomain.com results in a response with
Location: otherdomain.com
Set-Cookie: foo=bar
The foo=bar cookie is being set with domain otherdomain.com instead of originaldomain.com.
When Follow redirects is enabled, this works as expected.
Reproduction Steps
Disable Follow redirects in Insomnia preferences
Visit a site that returns a 307 response with a location header of a different domain and a set-cookie header without a domain attribute (my test endpoints do not include a domain attribute in the cookie response so maybe that is related, I have not tested when a domain is included)
Observe that cookie in insomnia is linked to the domain in the location header instead of the original requested domain, which returned the set-cookie header
When Follow redirects is enabled the cookie is set correctly on the original domain.
This is somewhat similar to #6478 but that is about when Follow redirects is enabled and a cookie is set by the second domain. This is about when Follow redirects is disabled and the original domain attempts to set a cookie.
Originally found issue on version 2023.5.8 of Insomnia, upgraded to 10.3.1 hoping it was fixed, but it is not.
Insomnia Version
10.3.1
What operating system are you using?
Windows
Operating System Version
Windows 11 Version 22H2
Installation method
download from insomnia.rest
Last Known Working Insomnia version
No response
The text was updated successfully, but these errors were encountered:
Expected Behavior
When a request (with
Follow redirects
disabled) tooriginaldomain.com
results in a response withI expect the
foo=bar
cookie is set with domainoriginaldomain.com
.Actual Behavior
When a request (with
Follow redirects
disabled) tooriginaldomain.com
results in a response withThe
foo=bar
cookie is being set with domainotherdomain.com
instead oforiginaldomain.com
.When
Follow redirects
is enabled, this works as expected.Reproduction Steps
Follow redirects
in Insomnia preferenceslocation
header of a different domain and aset-cookie
header without adomain
attribute (my test endpoints do not include adomain
attribute in the cookie response so maybe that is related, I have not tested when adomain
is included)location
header instead of the original requested domain, which returned theset-cookie
headerIs there an existing issue for this?
Which sync method do you use?
Additional Information
When
Follow redirects
is enabled the cookie is set correctly on the original domain.This is somewhat similar to #6478 but that is about when
Follow redirects
is enabled and a cookie is set by the second domain. This is about whenFollow redirects
is disabled and the original domain attempts to set a cookie.Originally found issue on version 2023.5.8 of Insomnia, upgraded to 10.3.1 hoping it was fixed, but it is not.
Insomnia Version
10.3.1
What operating system are you using?
Windows
Operating System Version
Windows 11 Version 22H2
Installation method
download from insomnia.rest
Last Known Working Insomnia version
No response
The text was updated successfully, but these errors were encountered: