yh00
V2EX  ›  问与答

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

  •  
  •   yh00 · Dec 23, 2021 · 1770 views
    This topic created in 1665 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   ·   1173 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:49 · PVG 01:49 · LAX 10:49 · JFK 13:49
    ♥ Do have faith in what you're doing.