Package org.springframework.web.cors
Class 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.- Since:
- 4.2
- Author:
- Sebastien Deleuze
Constructor Summary
Constructors Constructor Description CorsUtils()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
Constructor Detail
CorsUtils
public CorsUtils()
Method Detail
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.