Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
c46648bd
Commit
c46648bd
authored
Aug 23, 2023
by
muhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 跨域配置
parent
2384de30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ch-core/src/main/java/com/wwdz/ch/core/config/WebCorsConfig.java
.../src/main/java/com/wwdz/ch/core/config/WebCorsConfig.java
+1
-1
No files found.
ch-core/src/main/java/com/wwdz/ch/core/config/WebCorsConfig.java
View file @
c46648bd
...
@@ -15,7 +15,7 @@ public class WebCorsConfig implements WebMvcConfigurer {
...
@@ -15,7 +15,7 @@ public class WebCorsConfig implements WebMvcConfigurer {
// 设置允许跨域的路径
// 设置允许跨域的路径
registry
.
addMapping
(
"/**"
)
registry
.
addMapping
(
"/**"
)
// 设置允许跨域请求的域名
// 设置允许跨域请求的域名
.
allowedOrigins
(
"*"
)
.
allowedOrigin
Pattern
s
(
"*"
)
// 是否允许证书 不再默认开启
// 是否允许证书 不再默认开启
.
allowCredentials
(
true
)
.
allowCredentials
(
true
)
// 设置允许的方法
// 设置允许的方法
...
...
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