yh00
V2EX  ›  问与答

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

  •  
  •   yh00 · Dec 23, 2021 · 1696 views
    This topic created in 1632 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   ·   3007 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 06:55 · PVG 14:55 · LAX 23:55 · JFK 02:55
    ♥ Do have faith in what you're doing.