yh00
V2EX  ›  问与答

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

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

    代码如下

    fetch("https://v2ex.xtra.eu.org/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   ·   3244 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:58 · PVG 19:58 · LAX 04:58 · JFK 07:58
    ♥ Do have faith in what you're doing.