This commit is contained in:
Administrator
2024-05-11 00:01:47 +08:00
parent a552b4a17d
commit 6aac8bca98
2 changed files with 3 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ public class AccessControlInterceptor implements HandlerInterceptor {
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {
if ( "OPTIONS".equals(request.getMethod())){
System.out.println("接收到了OPTIONS");
return true;
}
// 获取请求中的所有 Cookie