From 9d9519354fb304855258a5c97e26dd12c3caf5e1 Mon Sep 17 00:00:00 2001 From: Codex Assistant <codex@example.com> Date: 星期三, 08 十月 2025 09:08:39 +0800 Subject: [PATCH] fix: 修复前端代理配置,移除不必要的API路径重写规则 --- backend/src/main/java/com/rongyichuang/config/SecurityConfig.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/backend/src/main/java/com/rongyichuang/config/SecurityConfig.java b/backend/src/main/java/com/rongyichuang/config/SecurityConfig.java index d599086..8101d60 100644 --- a/backend/src/main/java/com/rongyichuang/config/SecurityConfig.java +++ b/backend/src/main/java/com/rongyichuang/config/SecurityConfig.java @@ -50,7 +50,8 @@ .authorizeHttpRequests(auth -> auth .requestMatchers("/auth/**", "/actuator/**", "/test/**", "/cleanup/**").permitAll() .requestMatchers("/upload/**").permitAll() - .requestMatchers("/graphql", "/graphql/**", "/graphiql").permitAll() + .requestMatchers("/graphiql/**", "/graphql/**", "/api/graphql/**", "/api/graphiql/**").permitAll() // 鍏佽GraphQL鍜孏raphiQL璁块棶 + .requestMatchers("/**/graphql", "/**/graphiql").permitAll() // 鏇村娉涚殑GraphQL璺緞鍖归厤 .anyRequest().authenticated() ) .addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class); -- Gitblit v1.8.0