跨域问题

在 Stack Overflow中看到的解决跨域方案

  1. 在Chrome中添加扩展程序https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=zh-CN,允许跨域访问
  2. Windows在运行窗口输入chrome.exe –user-data-dir=”C:/Chrome dev session” –disable-web-security
    之后碰到了415错误,发现是content-type的问题,改为 content-Type: “application/json”,然后就好了

你可能感兴趣的:(跨域问题)