From e960db1a6460f9d72a8c8ce5b0ec1b1ffd18ef7e Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 4 Feb 2026 18:23:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20nginx=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9=EF=BC=8C=E8=A7=A3=E5=86=B3=E8=B7=A8?= =?UTF-8?q?=E5=9F=9F=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 91afeac..a4e0917 100644 --- a/nginx.conf +++ b/nginx.conf @@ -105,7 +105,6 @@ http { add_header Access-Control-Allow-Origin * always; # 你的前端源站,必须指定具体地址(比*安全) add_header Access-Control-Allow-Methods 'GET,POST,PUT,DELETE,OPTIONS' always; # 允许前端的请求方法 add_header Access-Control-Allow-Headers 'Content-Type,Authorization,Token,X-Requested-With' always; # 允许前端的自定义请求头(根据实际需求补充) -; add_header Access-Control-Allow-Credentials true always; # 允许跨域携带Cookie/Token(登录必备) add_header Access-Control-Max-Age 3600 always; # 预检请求缓存时间(1小时,减少OPTIONS请求) }