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
wwwanlingxiao
mall
Commits
7a1ca5d1
"...admin-cloud-eureka-server/vscode:/vscode.git/clone" did not exist on "fb3951135ecc3a7e368a3ab3a496253dfff29aa5"
Commit
7a1ca5d1
authored
Jul 01, 2025
by
macro
Browse files
Update GlobalCorsConfig.java
parent
2066a552
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-portal/src/main/java/com/macro/mall/portal/config/GlobalCorsConfig.java
View file @
7a1ca5d1
...
@@ -21,7 +21,7 @@ public class GlobalCorsConfig {
...
@@ -21,7 +21,7 @@ public class GlobalCorsConfig {
CorsConfiguration
config
=
new
CorsConfiguration
();
CorsConfiguration
config
=
new
CorsConfiguration
();
//允许所有域名进行跨域调用
//允许所有域名进行跨域调用
config
.
addAllowedOriginPattern
(
"*"
);
config
.
addAllowedOriginPattern
(
"*"
);
//允许跨
越
发送cookie
//允许跨
域
发送cookie
config
.
setAllowCredentials
(
true
);
config
.
setAllowCredentials
(
true
);
//放行全部原始头信息
//放行全部原始头信息
config
.
addAllowedHeader
(
"*"
);
config
.
addAllowedHeader
(
"*"
);
...
...
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