Skip to content

Commit

Permalink
Update WebConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech authored Nov 30, 2023
1 parent f083b55 commit 3f1dc47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedHeaders("origin",
"x-requested-with", "accept")
"x-requested-with", "accept","Access-Control-Allow-Origin")
.allowedMethods("GET", "POST",
"PUT", "DELETE")
.maxAge(3600);
}
}
}

0 comments on commit 3f1dc47

Please sign in to comment.