修改文件过滤规则.

This commit is contained in:
lijiahangmax
2025-03-26 01:42:14 +08:00
parent 3359d163fb
commit b8e81ee100
4 changed files with 14 additions and 3 deletions

View File

@@ -230,7 +230,7 @@ public class OrionSecurityAutoConfiguration {
return httpSecurity
// 开启跨域
.cors().and()
// 因为不使用session 禁用CSRF
// 因为不使用 session 禁用 CSRF
.csrf().disable()
// 基于 token 机制所以不需要 session
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()

View File

@@ -11,6 +11,11 @@
"description": "是否为演示模式.",
"defaultValue": false
},
{
"name": "orion.prefix",
"type": "java.lang.String",
"description": "项目前缀."
},
{
"name": "orion.api.prefix",
"type": "java.lang.String",