Clear Cookie header when redirect to cross-site#3417
Clear Cookie header when redirect to cross-site#3417kyoshidajp wants to merge 4 commits intocurl:masterfrom
Conversation
|
I don't think this makes a lot of sense. Cookies already have a domain match logic to make them only get sent to the relevant hosts and are very frequently used across different names. Can you expand on exactly which use case or problem this would work for? |
|
Thanks. The case is Cookie header is specified directly instead of When I try to run the following command, Cookie header was forward to http://example.com. There is no problem when |
|
Ah right. I suppose this is sensible. The only little detail I miss here is a mention about this in the |
|
@bagder So, should I add the following sentence under https://github.com/curl/curl/blob/master/docs/libcurl/opts/CURLOPT_HTTPHEADER.3#L87-L89 ? |
Yes please! |
| <info> | ||
| <keywords> | ||
| HTTP | ||
| followlocation |
There was a problem hiding this comment.
Should we have "cookies" here?
|
Thanks! |
After version 7.58.0, Authorization header isn't forward to cross-site when redirect.
Cookie header with confidential data should also be supported.