Skip to content

Commit

Permalink
[feature/InhaBas#275] dev cors test
Browse files Browse the repository at this point in the history
[feature/InhaBas#275] dev cors test
  • Loading branch information
whitem4rk authored Apr 1, 2024
2 parents a18b552 + c07b6cc commit b0783c6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public class CorsConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedOrigins("*").allowedMethods("*").allowedHeaders("*");
registry
.addMapping("/**")
.allowedOrigins("https://dev.inhabas.com")
.allowedMethods("OPTIONS", "GET", "POST", "PUT", "DELETE")
.allowedHeaders("Authorization")
.maxAge(3600);
}
}

0 comments on commit b0783c6

Please sign in to comment.