Skip to content

Commit 5946283

Browse files
colorful3juzi214032
authored andcommitted
fix: 修复升级 spring-boot 2.4.0 后导致的跨域问题
1 parent 1e01b29 commit 5946283

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/io/github/talelin/latticy/common/configuration/WebConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class WebConfiguration implements WebMvcConfigurer {
5555
@Override
5656
public void addCorsMappings(CorsRegistry registry) {
5757
registry.addMapping("/**")
58-
.allowedOrigins("*")
58+
.allowedOriginPatterns("*")
5959
.allowedMethods("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS")
6060
.allowCredentials(true)
6161
.maxAge(3600)

0 commit comments

Comments
 (0)