V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yuthelloworld
V2EX  ›  问与答

求教,一个关于 Sec-Fetch-Mode 的问题

  •  
  •   yuthelloworld · 2022-05-20 12:10:21 +08:00 · 413 次点击
    这是一个创建于 722 天前的主题,其中的信息可能已经有所发展或是发生改变。

    打开百度首页: https://www.baidu.com/ 的时候,我发现调用了一个接口如下:

    请求网址: https://www.baidu.com/sugrec?prod=pc_his&from=pc_web&json=1&sid=36455_31254_34813_36421_36166_35979_36055_36344_26350_36299_36315_36447&hisdata=&_t=1653019248401&req=2&csor=0
    请求方法: GET
    状态代码: 200 OK
    远程地址: 36.152.44.95:443
    引荐来源网址政策: unsafe-url
    Content-Length: 53
    Content-Type: text/plain; charset=UTF-8
    Date: Fri, 20 May 2022 04:00:48 GMT
    Accept: application/json, text/javascript, */*; q=0.01
    Accept-Encoding: gzip, deflate, br
    Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
    Connection: keep-alive
    Cookie: ;
    Host: www.baidu.com
    Referer: https://www.baidu.com/
    sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="101", "Google Chrome";v="101"
    sec-ch-ua-mobile: ?0
    sec-ch-ua-platform: "Windows"
    Sec-Fetch-Dest: empty
    Sec-Fetch-Mode: cors
    Sec-Fetch-Site: same-origin
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36
    

    有个疑问求教各位大佬,明明是同源,为何 Sec-Fetch-Mode 是 cors ?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1020 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:47 · PVG 06:47 · LAX 15:47 · JFK 18:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.