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

V2 的 API 不支持 cors 的么 还有获取最新和最热列表能不能有分页啊?

  •  
  •   Vincent720 · Jan 14, 2016 · 3588 views
    This topic created in 3766 days ago, the information mentioned may be changed or developed.
    1 replies    2016-03-18 06:41:58 +08:00
    stiekel
        1
    stiekel  
       Mar 18, 2016
    我也遇到同样问题

    Fetch API cannot load https://www.sunp.eu.org/api/topics/hot.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

    换作 reddit 的 API ,或者我写的其它服务器上的 API ,就可以正常的获取了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5658 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 08:06 · PVG 16:06 · LAX 01:06 · JFK 04:06
    ♥ Do have faith in what you're doing.