Skip to content

Commit

Permalink
resolved cors error for frontend and server config
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshitPachori committed Jul 1, 2024
1 parent c9b8e08 commit 6ae2c4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
public CorsConfiguration getCorsConfiguration(HttpServletRequest request) {
CorsConfiguration cfg = new CorsConfiguration();
cfg.setAllowedOrigins(
List.of("http://localhost:5173"));
List.of("http://localhost:5173", "https://story-path-nu.vercel.app"));
cfg.addAllowedMethod("*");
cfg.setAllowCredentials(true);
cfg.addAllowedHeader("*");
Expand Down

0 comments on commit 6ae2c4e

Please sign in to comment.