前端操作台中显示
:5173/#/pages/index/venues-introduction:1 Access to XMLHttpRequest at 'http://localhost:8080/venues/?page=0&size=10&sort=venueName%2Casc' from origin 'http://localhost:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
后端操作台中显示
2025-07-25 11:04:40.962 [http-nio-8080-exec-2] DEBUG org.springframework.security.web.FilterChainProxy - Securing OPTIONS /venues/?page=0&size=10&sort=venueName%2Casc 2025-07-25 11:04:40.962 [http-nio-8080-exec-2] DEBUG o.s.s.w.a.AnonymousAuthenticationFilter - Set SecurityContextHolder to anonymous SecurityContext
2025-07-25 11:04:40.962 [http-nio-8080-exec-2] DEBUG o.s.s.w.authentication.Http403ForbiddenEntryPoint - Pre-authenticated entry point called. Rejecting access