V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yh00
V2EX  ›  问与答

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

  •  
  •   yh00 · Dec 23, 2021 · 1615 views
    This topic created in 1598 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   ·   2973 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:40 · PVG 16:40 · LAX 01:40 · JFK 04:40
    ♥ Do have faith in what you're doing.