Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
f67dddc0
Commit
f67dddc0
authored
Jan 15, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跨域调整-fxj
parent
4ae8fd06
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
CorsConfig.java
...m/yifu/cloud/plus/v1/yifu/archives/config/CorsConfig.java
+1
-1
CorsConfig.java
...a/com/yifu/cloud/plus/v1/yifu/auth/config/CorsConfig.java
+1
-1
CorsConfig.java
...com/yifu/cloud/plus/v1/yifu/salary/config/CorsConfig.java
+1
-1
CorsConfig.java
...com/yifu/cloud/plus/v1/yifu/social/config/CorsConfig.java
+1
-1
CorsConfig.java
.../com/yifu/cloud/plus/v1/yifu/admin/config/CorsConfig.java
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/config/CorsConfig.java
View file @
f67dddc0
...
@@ -33,7 +33,7 @@ public class CorsConfig {
...
@@ -33,7 +33,7 @@ public class CorsConfig {
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
//
order 需要再 securityFilter 前
//
前Spring Security 过滤器是通过 SecurityFilterAutoConfiguration 的 DelegatingFilterProxyRegistrationBean 注册到 servletContext上下文,其中过滤器的顺序属性 Order 读取的 是 SecurityProperties 的默认配置也就是 -100;
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
return
filterRegistrationBean
;
return
filterRegistrationBean
;
...
...
yifu-auth/src/main/java/com/yifu/cloud/plus/v1/yifu/auth/config/CorsConfig.java
View file @
f67dddc0
...
@@ -33,7 +33,7 @@ public class CorsConfig {
...
@@ -33,7 +33,7 @@ public class CorsConfig {
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
//
order 需要再 securityFilter 前
//
前Spring Security 过滤器是通过 SecurityFilterAutoConfiguration 的 DelegatingFilterProxyRegistrationBean 注册到 servletContext上下文,其中过滤器的顺序属性 Order 读取的 是 SecurityProperties 的默认配置也就是 -100;
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
return
filterRegistrationBean
;
return
filterRegistrationBean
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/config/CorsConfig.java
View file @
f67dddc0
...
@@ -33,7 +33,7 @@ public class CorsConfig {
...
@@ -33,7 +33,7 @@ public class CorsConfig {
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
//
order 需要再 securityFilter 前
//
前Spring Security 过滤器是通过 SecurityFilterAutoConfiguration 的 DelegatingFilterProxyRegistrationBean 注册到 servletContext上下文,其中过滤器的顺序属性 Order 读取的 是 SecurityProperties 的默认配置也就是 -100;
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
return
filterRegistrationBean
;
return
filterRegistrationBean
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/config/CorsConfig.java
View file @
f67dddc0
...
@@ -33,7 +33,7 @@ public class CorsConfig {
...
@@ -33,7 +33,7 @@ public class CorsConfig {
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
//
order 需要再 securityFilter 前
//
前Spring Security 过滤器是通过 SecurityFilterAutoConfiguration 的 DelegatingFilterProxyRegistrationBean 注册到 servletContext上下文,其中过滤器的顺序属性 Order 读取的 是 SecurityProperties 的默认配置也就是 -100;
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
return
filterRegistrationBean
;
return
filterRegistrationBean
;
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/config/CorsConfig.java
View file @
f67dddc0
...
@@ -33,7 +33,7 @@ public class CorsConfig {
...
@@ -33,7 +33,7 @@ public class CorsConfig {
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
CorsFilter
corsFilter
=
new
CorsFilter
(
source
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
FilterRegistrationBean
<
CorsFilter
>
filterRegistrationBean
=
new
FilterRegistrationBean
<>(
corsFilter
);
//
order 需要再 securityFilter 前
//
前Spring Security 过滤器是通过 SecurityFilterAutoConfiguration 的 DelegatingFilterProxyRegistrationBean 注册到 servletContext上下文,其中过滤器的顺序属性 Order 读取的 是 SecurityProperties 的默认配置也就是 -100;
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
filterRegistrationBean
.
setOrder
(-
101
);
// 小于 SpringSecurity Filter的 Order(-100) 即可
return
filterRegistrationBean
;
return
filterRegistrationBean
;
...
...
Write
Preview
Markdown
is supported
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