Changeset ecd0016


Ignore:
Timestamp:
01/26/26 13:08:47 (6 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
5c65932
Parents:
335fee0
Message:

cors config bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • finkwave/src/main/java/com/ukim/finki/develop/finkwave/config/SecurityConfig.java

    r335fee0 recd0016  
    4242    public CorsConfigurationSource corsConfigurationSource() {
    4343        CorsConfiguration configuration = new CorsConfiguration();
    44 
    45         configuration.setAllowedOrigins(List.of("*"));
    46         configuration.setAllowedMethods(List.of("*"));
     44        configuration.setAllowedOriginPatterns(List.of("http://localhost:*"));
     45        configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
    4746        configuration.setAllowedHeaders(List.of("*"));
    4847        configuration.setAllowCredentials(true);
Note: See TracChangeset for help on using the changeset viewer.