Class CorsEndpointProperties

java.lang.Object
org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties

@ConfigurationProperties(prefix="management.endpoints.web.cors") public class CorsEndpointProperties extends Object
Configuration properties for web endpoints' CORS support.
Since:
2.0.0
Author:
Andy Wilkinson
  • Constructor Details

    • CorsEndpointProperties

      public CorsEndpointProperties()
  • Method Details

    • getAllowedOrigins

      public List<String> getAllowedOrigins()
    • setAllowedOrigins

      public void setAllowedOrigins(List<String> allowedOrigins)
    • getAllowedOriginPatterns

      public List<String> getAllowedOriginPatterns()
    • setAllowedOriginPatterns

      public void setAllowedOriginPatterns(List<String> allowedOriginPatterns)
    • getAllowedMethods

      public List<String> getAllowedMethods()
    • setAllowedMethods

      public void setAllowedMethods(List<String> allowedMethods)
    • getAllowedHeaders

      public List<String> getAllowedHeaders()
    • setAllowedHeaders

      public void setAllowedHeaders(List<String> allowedHeaders)
    • getExposedHeaders

      public List<String> getExposedHeaders()
    • setExposedHeaders

      public void setExposedHeaders(List<String> exposedHeaders)
    • getAllowCredentials

      public Boolean getAllowCredentials()
    • setAllowCredentials

      public void setAllowCredentials(Boolean allowCredentials)
    • getMaxAge

      public Duration getMaxAge()
    • setMaxAge

      public void setMaxAge(Duration maxAge)
    • toCorsConfiguration

      public CorsConfiguration toCorsConfiguration()