Skip to content

Commit a8bf345

Browse files
committed
feat: cors에 로컬포트를 추가한다
1 parent 8d8b260 commit a8bf345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/spring/memewikibe/config/WebConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer {
1010
@Override
1111
public void addCorsMappings(CorsRegistry registry) {
1212
registry.addMapping("/**")
13-
.allowedOrigins("http://localhost:3000", "http://localhost:8080", "https://api.meme-wiki.net")
13+
.allowedOrigins("http://localhost:3000", "http://localhost:8080", "http://localhost:5173", "https://api.meme-wiki.net")
1414
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
1515
.allowedHeaders("*")
1616
.allowCredentials(true);

0 commit comments

Comments
 (0)