Skip to content

Commit

Permalink
πŸš€ :: Api-v0.0.3-2
Browse files Browse the repository at this point in the history
πŸš€ :: Api-v0.0.3-2
  • Loading branch information
ImNM authored Jan 13, 2023
2 parents 393bb5c + 836e7f8 commit bf68193
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ public class CorsConfig implements WebMvcConfigurer {

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedMethods("*").allowedOrigins("*");
registry.addMapping("/**")
.allowedMethods("*")
.allowedOrigins("*")
.exposedHeaders("Set-Cookie")
.allowCredentials(true);
}
}

0 comments on commit bf68193

Please sign in to comment.