Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
4f7702b2
Commit
4f7702b2
authored
Aug 17, 2020
by
Lyy
Committed by
Gitee
Aug 17, 2020
Browse files
update ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java.
修改注释,CRSF禁用
parent
d596d5bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
View file @
4f7702b2
...
@@ -88,7 +88,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
...
@@ -88,7 +88,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
protected
void
configure
(
HttpSecurity
httpSecurity
)
throws
Exception
protected
void
configure
(
HttpSecurity
httpSecurity
)
throws
Exception
{
{
httpSecurity
httpSecurity
// C
R
SF禁用,因为不使用session
// CS
R
F禁用,因为不使用session
.
csrf
().
disable
()
.
csrf
().
disable
()
// 认证失败处理类
// 认证失败处理类
.
exceptionHandling
().
authenticationEntryPoint
(
unauthorizedHandler
).
and
()
.
exceptionHandling
().
authenticationEntryPoint
(
unauthorizedHandler
).
and
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment