popomore / koa-proxy

Proxy middleware for koa
223 stars 102 forks source link

Documentation issue about "jar" #63

Open ldperron opened 6 years ago

ldperron commented 6 years ago

It is written: "Proxy won't send cookie to real server, you can set jar = true to send it." That's not the appropriate meaning of the jar option of request. In request documentation, it states: jar - if true, remember cookies for future use (or define your custom cookie jar; see examples section)

So, if jar=false, the cookies are still transmitted to the real server, and won't be cached by the proxy.

ladjzero commented 5 years ago

OMG. We debugged this issue for weeks! Cookie is stolen by some other users!