在接口的地方加上请求头。
//跨域请求
header('Access-Control-Allow-Origin:*');

不要在ajax里面加!!!!!!!!!

相关文章:

  • 2021-12-19
  • 2021-12-19
  • 2022-01-23
  • 2022-01-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-11-14
  • 2021-03-31
相关资源
相似解决方案