gpt4 book ai didi

cookies - 使用 postman 发送cookie

转载 作者:行者123 更新时间:2023-12-03 05:49:11 26 4
gpt4 key购买 nike

我阅读了使用postman使用cookie发送请求的手册:

As the packaged app runs in a sandbox separately from the browser, it can not access cookies set inside the browser. This restriction can also be overcome using the Interceptor extension. Postman routes all requests through the Interceptor, which then uses the browser context to send requests. Cookies set inside the browser are automatically attached to your requests. Read the original blog post on Interceptor.

Once the interceptor is enabled, you can also send cookies from Postman. Just set the "Cookie" header, and the cookie will be sent with the request. You can also get access to cookies that are available when the response is returned. Check out out blog post for more

所以我下载了谷歌浏览器的拦截器,并且它启用了。

另外,我将以下内容添加到 postman :Cookie JSESSIONID=daczcz36789

当我查看网络时,我注意到 Cookie 未发送。

我做错了什么?

最佳答案

我使用了 postman chrome 扩展,直到它被弃用。 Chrome 扩展程序的可用性和功能也不如 native postman 应用程序。因此使用chrome扩展变得非常不方便。

我找到了另一种方法:

  1. 将 Chrome/任何其他浏览器中的任何请求复制为 CURL 请求 copy curl request
  2. 导入到 postman 复制的请求 import to postman copied request
  3. 将导入的请求保存在 postman 列表中

关于cookies - 使用 postman 发送cookie,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30890403/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com