Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jiujian
/
client-customer-order-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
zhuyifan
2025-04-11 18:15:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ade9ca2c74368c03943e80b180a636b1eb05ba01
ade9ca2c
1 parent
9823a61d
升级
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/infoloop/tianting/config/WebMvcConfig.java
src/main/java/com/infoloop/tianting/config/WebMvcConfig.java
View file @
ade9ca2
...
...
@@ -68,7 +68,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
public
void
addCorsMappings
(
CorsRegistry
registry
)
{
// 跨域支持
registry
.
addMapping
(
"/**"
)
.
allowedOrigins
(
"*"
)
.
allowedOrigin
Pattern
s
(
"*"
)
.
allowedMethods
(
HttpMethod
.
GET
.
name
(),
HttpMethod
.
POST
.
name
(),
HttpMethod
.
PUT
.
name
(),
HttpMethod
.
DELETE
.
name
(),
HttpMethod
.
PATCH
.
name
(),
HttpMethod
.
OPTIONS
.
name
())
.
allowCredentials
(
true
);
}
...
...
Please
register
or
login
to post a comment