feat: 更新安全配置和日志输出

主要修改:
1. 在SecurityConfig中允许所有CORS预检请求(OPTIONS)公开访问。
2. 更新日志输出,增加对OPTIONS请求的权限配置说明。

技术细节:
- 通过允许OPTIONS请求,增强了跨域资源共享(CORS)的支持,提升了前端与后端的交互能力。
This commit is contained in:
zyh
2025-08-27 18:52:00 +08:00
parent 4daf71f62b
commit 1377c25847
3 changed files with 24 additions and 15 deletions

View File

@@ -3,7 +3,7 @@ spring:
name: gameplatform-server
datasource:
url: jdbc:mysql://localhost:3306/login_task_db?useSSL=false&serverTimezone=UTC&characterEncoding=utf8&allowPublicKeyRetrieval=true
url: jdbc:mysql://192.140.164.137:3306/login_task_db?useSSL=false&serverTimezone=UTC&characterEncoding=utf8&allowPublicKeyRetrieval=true
username: login_task_db
password: 3MaXfeWJ4d6cGMrL
driver-class-name: com.mysql.cj.jdbc.Driver
@@ -70,7 +70,7 @@ script:
# 服务器配置
app:
base-url: "http://localhost:18080" # 生产环境需要配置为实际域名
base-url: "http://192.140.164.137:18080" # 生产环境需要配置为实际域名
image-save-path: "./images" # 图片保存路径
link: