让api请求允许跨域

header("Access-Control-Allow-Origin:*");
header('Access-Control-Allow-Credentials:true');
header('Access-Control-Allow-Methods:GET, POST, OPTIONS');

相关文章:

  • 2022-12-23
  • 2021-05-21
  • 2021-09-24
  • 2022-03-08
  • 2022-12-23
  • 2021-07-28
  • 2021-11-21
  • 2021-06-09
猜你喜欢
  • 2022-02-07
  • 2022-02-01
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
相关资源
相似解决方案