Class CrossOrigin
java.lang.Object
org.springframework.integration.http.inbound.CrossOrigin
The mapping to permit cross origin requests (CORS) for
HttpRequestHandlingEndpointSupport
.
Provides direct mapping in terms of functionality compared to
CrossOrigin
.- Since:
- 4.2
- Author:
- Artem Bilan
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
String[]
long
String[]
void
setAllowCredentials
(Boolean allowCredentials) void
setAllowedHeaders
(String... allowedHeaders) void
setExposedHeaders
(String... exposedHeaders) void
setMaxAge
(long maxAge) void
setMethod
(RequestMethod... method) void
-
Constructor Details
-
CrossOrigin
public CrossOrigin()
-
-
Method Details
-
setOrigin
-
getOrigin
-
setAllowedHeaders
-
getAllowedHeaders
-
setExposedHeaders
-
getExposedHeaders
-
setMethod
-
getMethod
-
setAllowCredentials
-
getAllowCredentials
-
setMaxAge
public void setMaxAge(long maxAge) -
getMaxAge
public long getMaxAge()
-