org.springframework.boot.actuate.autoconfigure.endpoint.web

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 Detail

      • CorsEndpointProperties

        public CorsEndpointProperties()
    • Method Detail

      • getAllowedOrigins

        public List<String> getAllowedOrigins()
      • setAllowedOrigins

        public void setAllowedOrigins(List<String> allowedOrigins)
      • 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)