Skip to content

Commit

Permalink
[etc]
Browse files Browse the repository at this point in the history
  • Loading branch information
parking0 committed Jul 20, 2024
2 parents 577ed45 + 4daa3ce commit 0a6840d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/Lubee/Lubee/LubeeApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@EnableJpaAuditing
@SpringBootApplication
public class LubeeApplication {

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/Lubee/Lubee/common/config/WebMvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedOrigins("http://localhost:5173/**")
.allowedOrigins("http://localhost:5173")
.allowedMethods("*")
.allowedHeaders("*")
.allowedMethods("OPTIONS","GET","POST","PUT","DELETE");
Expand Down

0 comments on commit 0a6840d

Please sign in to comment.