在http节点中配置:

#支持跨域访问
    add_header Access-Control-Allow-Origin *;
    add_header Access-Control-Allow-Headers X-Requested-With;
    add_header Access-Control-Allow-Methods GET,POST,OPTIONS;

 

参考网址:http://www.51testing.com/html/96/215196-829360.html

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2022-01-27
  • 2021-07-08
  • 2021-08-02
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
猜你喜欢
  • 2021-06-12
  • 2022-12-23
  • 2021-06-11
  • 2021-09-08
  • 2022-12-23
  • 2022-02-12
相关资源
相似解决方案