yh00
V2EX  ›  问与答

请教一个问题,是关于 js, fetch, cors, V2EX api 的。

  •  
  •   yh00 · Dec 23, 2021 · 1692 views
    This topic created in 1630 days ago, the information mentioned may be changed or developed.

    代码如下

    fetch("https://www.v2ex.com/api/v2/token",{
            "method": "GET",
            "mode": "no-cors",
            "headers":{
            "Authorization": "Bearer 删除了这里" 
        }}).then(
            result=>{console.log(result)},
        );
    

    问题如下

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   868 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:24 · PVG 05:24 · LAX 14:24 · JFK 17:24
    ♥ Do have faith in what you're doing.