feat: 更新安全配置和日志输出
主要修改: 1. 在SecurityConfig中允许所有CORS预检请求(OPTIONS)公开访问。 2. 更新日志输出,增加对OPTIONS请求的权限配置说明。 技术细节: - 通过允许OPTIONS请求,增强了跨域资源共享(CORS)的支持,提升了前端与后端的交互能力。
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user