Skip to content

Commit

Permalink
Merge branch 'dalek63:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbmz authored Jan 5, 2024
2 parents 31ecd1b + cbb76be commit 47f18b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/pacman/pacman/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public CorsFilter corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration();
// Autorise toutes les origines, méthodes, et en-têtes (à ajuster selon vos besoins)
config.addAllowedOrigin("");
config.addAllowedOrigin("http://localhost:3000");
config.addAllowedMethod("");
config.addAllowedHeader("*");
source.registerCorsConfiguration("/**", config);
Expand Down

0 comments on commit 47f18b2

Please sign in to comment.