Changeset 4f85b41 for backend


Ignore:
Timestamp:
04/30/26 12:05:34 (2 months ago)
Author:
Andrej <asumanovski@…>
Branches:
master
Children:
e9a0543
Parents:
8449b9c
Message:

Daily discipline feature done

Location:
backend/src/main/java/com/trekr/backend
Files:
15 added
1 edited

Legend:

Unmodified
Added
Removed
  • backend/src/main/java/com/trekr/backend/config/SecurityConfig.java

    r8449b9c r4f85b41  
    5050                "http://localhost:5173",
    5151                "http://127.0.0.1:5173"));
    52         config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
    53         config.setAllowedHeaders(List.of("Authorization", "Content-Type"));
     52        config.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
     53        config.setAllowedHeaders(List.of("Authorization", "Content-Type", "Accept", "Origin", "X-Requested-With"));
     54        config.setAllowCredentials(true);
    5455
    5556        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
Note: See TracChangeset for help on using the changeset viewer.