方法一:nginx服务器添加header设置 location / {
add_header ‘Access-Control-Allow-Origin’ ‘’; add_header ‘Access-Control-Allow-Credentials’ ‘true’; add_header ‘Access-Control-Allow-Methods’ '’; index index.php index.html index.htm; try_files $uri u r i / / i n d e x . p h p ? uri/ /index.php?