| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public static boolean | isCorsRequest(ServerHttpRequest request)
Returns |
| public static boolean | isPreFlightRequest(ServerHttpRequest request)
Returns |
| public static boolean | Returns: true if the request is a same-origin one, false in case
of a cross-origin request
Deprecated
as of 5.2, same-origin checks are performed directly by
Check if the request is a same-origin one, based on isCorsRequest
Origin, and
Host headers.
|
| CorsUtils | back to summary |
|---|---|
| public CorsUtils() | |
| getPort | back to summary |
|---|---|
| private static int getPort(String scheme, int port) | |
| isCorsRequest | back to summary |
|---|---|
| public static boolean isCorsRequest(ServerHttpRequest request) Returns
| |
| isPreFlightRequest | back to summary |
|---|---|
| public static boolean isPreFlightRequest(ServerHttpRequest request) Returns | |
| isSameOrigin | back to summary |
|---|---|
| public static boolean isSameOrigin(ServerHttpRequest request)
Deprecated as of 5.2, same-origin checks are performed directly by Check if the request is a same-origin one, based on Note as of 5.1 this method ignores
| |