Skip to content

Commit

Permalink
Merge pull request #243 from softeerbootcamp-2nd/be-feature/api-optimize
Browse files Browse the repository at this point in the history
[BE] hotfix: cors 허용
  • Loading branch information
Chocochip101 authored Aug 25, 2023
2 parents 60667aa + 03024f8 commit 2f3240c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class WebConfiguration implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("https://*.make-my-car.shop", "http://*.make-my-car.shop", "http://localhost:5173")
.allowedOriginPatterns("https://*.make-my-car.shop", "http://*.make-my-car.shop", "http://localhost:5173", "https://make-my-car.shop", "http://make-my-car.shop")
.allowedMethods("*");
}
}

0 comments on commit 2f3240c

Please sign in to comment.