V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Vincent720
V2EX  ›  V2EX

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

  •  
  •   Vincent720 · 2016-01-14 15:33:18 +08:00 · 2682 次点击
    这是一个创建于 2996 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1 条回复    2016-03-18 06:41:58 +08:00
    stiekel
        1
    stiekel  
       2016-03-18 06:41:58 +08:00
    我也遇到同样问题

    Fetch API cannot load https://www.v2ex.com/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 ,就可以正常的获取了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1307 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:31 · PVG 07:31 · LAX 16:31 · JFK 19:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.