⚡ 修改文件过滤规则.
This commit is contained in:
@@ -230,7 +230,7 @@ public class OrionSecurityAutoConfiguration {
|
||||
return httpSecurity
|
||||
// 开启跨域
|
||||
.cors().and()
|
||||
// 因为不使用session 禁用CSRF
|
||||
// 因为不使用 session 禁用 CSRF
|
||||
.csrf().disable()
|
||||
// 基于 token 机制所以不需要 session
|
||||
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
"description": "是否为演示模式.",
|
||||
"defaultValue": false
|
||||
},
|
||||
{
|
||||
"name": "orion.prefix",
|
||||
"type": "java.lang.String",
|
||||
"description": "项目前缀."
|
||||
},
|
||||
{
|
||||
"name": "orion.api.prefix",
|
||||
"type": "java.lang.String",
|
||||
|
||||
Reference in New Issue
Block a user