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
4c388775
Commit
4c388775
authored
Sep 08, 2023
by
jinli gu
Browse files
Update ResourcesConfig.java
parent
30cc7af7
Pipeline
#36
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java
View file @
4c388775
...
...
@@ -57,7 +57,7 @@ public class ResourcesConfig implements WebMvcConfigurer
CorsConfiguration
config
=
new
CorsConfiguration
();
config
.
setAllowCredentials
(
true
);
// 设置访问源地址
config
.
allow
ed
Origin
Pattern
s
(
"*"
);
config
.
a
ddA
llowOrigins
(
"*"
);
// 设置访问源请求头
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