Skip to content

Commit

Permalink
refactor: OPTIONS 오리진 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ksk0605 committed Jul 23, 2024
1 parent c4e8022 commit fd47477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/main/java/mouda/backend/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class CorsConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:8080")
.allowedMethods("GET", "POST", "DELETE")
.allowedMethods("GET", "POST", "DELETE", "OPTIONS")
.allowedHeaders("Authorization", "Content-Type")
.allowCredentials(true)
.maxAge(3600);
Expand Down

0 comments on commit fd47477

Please sign in to comment.