lrj
6 小时以前 ae3349d2ff53767b5bc9cb30e1bf7e15f9e814ee
backend/src/main/java/com/rongyichuang/config/SecurityConfig.java
@@ -48,9 +48,9 @@
            .csrf(csrf -> csrf.disable())
            .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
            .authorizeHttpRequests(auth -> auth
                .requestMatchers("/api/auth/**", "/api/actuator/**", "/api/test/**", "/api/cleanup/**").permitAll()
                .requestMatchers("/api/graphql", "/api/graphql/**", "/api/graphiql").permitAll()
                .requestMatchers("/graphql", "/graphql/**").permitAll()
                .requestMatchers("/auth/**", "/actuator/**", "/test/**", "/cleanup/**").permitAll()
                .requestMatchers("/upload/**").permitAll()
                .requestMatchers("/graphql", "/graphql/**", "/graphiql").permitAll()
                .anyRequest().authenticated()
            )
            .addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);