Class CorsConfig


public final class CorsConfig extends Object
CORS configuration.
  • Constructor Details

    • CorsConfig

      public CorsConfig(Object allowedOrigins, @Nullable Integer maxAgeSeconds)
      Creates an instance with the specified allowedOrigins and maxAgeSeconds.
  • Method Details

    • allowedOrigins

      public List<String> allowedOrigins()
      Returns the list of origins which are allowed a CORS policy.
    • maxAgeSeconds

      public int maxAgeSeconds()
      Returns how long in seconds the results of a preflight request can be cached. If unspecified, the default of 7200 seconds is returned.
    • toString

      public String toString()
      toString in class Object