类 CorsUtils
- java.lang.Object
- org.springframework.web.cors.CorsUtils
public abstract class CorsUtils extends Object
Utility class for CORS request handling based on the CORS W3C recommendation.- 从以下版本开始:
- 4.2
- 作者:
- Sebastien Deleuze
构造器概要
构造器 构造器 说明 CorsUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static boolean
isCorsRequest(HttpServletRequest request)
Returnstrue
if the request is a valid CORS one.static boolean
isPreFlightRequest(HttpServletRequest request)
Returnstrue
if the request is a valid CORS pre-flight one.
构造器详细资料
CorsUtils
public CorsUtils()
方法详细资料
isCorsRequest
public static boolean isCorsRequest(HttpServletRequest request)
Returnstrue
if the request is a valid CORS one.
isPreFlightRequest
public static boolean isPreFlightRequest(HttpServletRequest request)
Returnstrue
if the request is a valid CORS pre-flight one.