Skip to content

Commit

Permalink
ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelSlavka committed Jan 24, 2025
1 parent f38f4bc commit e03e22a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/backend/api/security/config/CORSConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ public class CORSConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("GET", "POST", "PUT", "DELETE", "HEAD");
.allowedOrigins("https://samsla.org")
.allowedMethods("GET", "POST", "PUT", "DELETE", "HEAD")
.allowedHeaders("*")
.allowCredentials(true);
}
}

0 comments on commit e03e22a

Please sign in to comment.