mitre / HTTP-Proxy-Servlet

Smiley's HTTP Proxy implemented as a Java servlet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookie Domain Not Copied

mkueng1 opened this issue · comments

In ProxyServlet.copyProxyCookie() there's a comment

don't set cookie domain

Why is that? In my case I need this.
Would you agree to have a parameter to enable copying the domain? Of course it only makes sense when the domain is part of the used host.

I worked on this a long time ago but, yeah, I figured the domain isn't necessarily the same host so it's unsafe to set the host. Feel free to propose a PR.