类 CorsUtils

    • 构造器详细资料

    • 方法详细资料

      • isCorsRequest

        public static boolean isCorsRequest​(HttpServletRequest request)
        Returns true if the request is a valid CORS one by checking Origin header presence and ensuring that origins are different.
      • isPreFlightRequest

        public static boolean isPreFlightRequest​(HttpServletRequest request)
        Returns true if the request is a valid CORS pre-flight one by checking {code OPTIONS} method with Origin and Access-Control-Request-Method headers presence.