Len1133
V2EX  ›  问与答

postman 怎么禁止自动加 cookie?

  •  
  •   Len1133 · May 18, 2018 · 7910 views
    This topic created in 2943 days ago, the information mentioned may be changed or developed.

    我的请求 header 里边有 cookie 这个字段了,每次返回它会把 set-cookie 自动加到 postman 的 cookie 里面,导致我同一个请求,postman 里面用自动存起来的 cookie 拿到了结果,代码用 header 里的 cookie,怎么都不行。 我现在想把自动存 cookie 的功能关掉,只用 header 里的 cookie,这个操作怎么弄?

    1 replies    2018-05-18 16:23:10 +08:00
    changepll
        1
    changepll  
       May 18, 2018   ❤️ 1
    1.如果想要发送带 cookie 的请求,需要开启 Interceptor.
    2.点击 Send 之后的 Cookie 是你在 Header 里面设置的,还是服务器设置的,这个你要弄清楚
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1046 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 19:02 · PVG 03:02 · LAX 12:02 · JFK 15:02
    ♥ Do have faith in what you're doing.