cwz346852114
V2EX  ›  问与答

nuxt asyncData 跳转跨域问题

  •  
  •   cwz346852114 · Jun 16, 2020 · 1904 views
    This topic created in 2186 days ago, the information mentioned may be changed or developed.

    在当前页面使用 asyncData 调用接口不会跨域 但是跳转新页面使用 asyncData 方法调用接口就会跨域 后台是 ng 没有配置 是必须要 ng 配置吗

    2 replies    2020-06-18 20:20:15 +08:00
    crystom
        1
    crystom  
       Jun 16, 2020
    是因为服务端首屏渲染不会跨域吧
    cwz346852114
        2
    cwz346852114  
    OP
       Jun 18, 2020 via Android
    @crystom 谢谢您了 应该是这个问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3124 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:43 · PVG 21:43 · LAX 06:43 · JFK 09:43
    ♥ Do have faith in what you're doing.