nginx设置允许跨域请求 🕙2024-01-04 在服务的nginx server中加入location /{ add_header Access-Control-Allow-Origin *; } 如果是宝塔则如图所示