Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LinMoQC committed May 1, 2024
1 parent 95514ab commit fbc801e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/linmoblog/server/Config/CrossConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class CrossConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/api/**")
.allowedOrigins("http://127.0.0.1")
.allowedOrigins("127.0.0.1")
.allowedMethods("GET", "POST", "PUT", "DELETE")
.maxAge(3600);
}
Expand Down

0 comments on commit fbc801e

Please sign in to comment.