Skip to content

Commit

Permalink
Merge pull request #23 from 7th-UMC-Hackathon-TeamV/feat/post
Browse files Browse the repository at this point in the history
fix: cors 설정 추가
  • Loading branch information
chaechaen authored Jan 11, 2025
2 parents d62ccca + e5bfcf5 commit 9bf2d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/banban/springboot/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("https://on-air.netlify.app")
.allowedOrigins("https://on-air.netlify.app", "http://localhost:3000")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true)
Expand Down

0 comments on commit 9bf2d04

Please sign in to comment.