NoKey

请教一下,页面和后台有没有放在不同服务器的

  •  
  •   NoKey · Mar 7, 2019 · 2790 views
    This topic created in 2648 days ago, the information mentioned may be changed or developed.
    有没有哪位大侠,把页面和后台部署在不同的服务器的?
    这种情况下,不特定设置,访问会跨域
    我的 js 是直接写的,很简单的一个 ajax 请求,没有用 node 之类的
    这种情况下,一般比较安全的跨域解决方式是什么呢?
    谢谢
    2 replies    2019-03-08 08:52:43 +08:00
    qqqz
        1
    qqqz  
       Mar 7, 2019
    谷歌是个好东西
    overwhats
        2
    overwhats  
       Mar 8, 2019
    比较安全的就是你本地再起个 node,代理你的请求
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2829 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:59 · PVG 16:59 · LAX 01:59 · JFK 04:59
    ♥ Do have faith in what you're doing.