Vincent720
V2EX  ›  V2EX

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

  •  
  •   Vincent720 · Jan 14, 2016 · 3667 views
    This topic created in 3798 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://v2ex.xtra.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   ·   2935 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 14:56 · PVG 22:56 · LAX 07:56 · JFK 10:56
    ♥ Do have faith in what you're doing.