java.lang.Object
org.springframework.integration.http.inbound.CrossOrigin

public class CrossOrigin extends Object
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 Details

    • CrossOrigin

      public CrossOrigin()
  • Method Details

    • setOrigin

      public void setOrigin(String... origin)
    • getOrigin

      public String[] getOrigin()
    • setAllowedHeaders

      public void setAllowedHeaders(String... allowedHeaders)
    • getAllowedHeaders

      public String[] getAllowedHeaders()
    • setExposedHeaders

      public void setExposedHeaders(String... exposedHeaders)
    • getExposedHeaders

      public String[] getExposedHeaders()
    • setMethod

      public void setMethod(RequestMethod... method)
    • getMethod

      public RequestMethod[] getMethod()
    • setAllowCredentials

      public void setAllowCredentials(Boolean allowCredentials)
    • getAllowCredentials

      public Boolean getAllowCredentials()
    • setMaxAge

      public void setMaxAge(long maxAge)
    • getMaxAge

      public long getMaxAge()