Centos安装脚本(一键安装)
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
1.宝塔设置跨域问题(Nginx环境添加允许跨域Header头)
2.在设置-配置文件中添加一下代码并保存(如图)
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET,POST';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
3.重启nginx
点击左侧菜单栏的 “软件商店”,找到“Nginx 1.16.0”,并点击重启按钮即可