Class BucketCorsRule


  • public final class BucketCorsRule
    extends java.lang.Object
    • Method Detail

      • allowedHeaders

        public java.util.List<java.lang.String> allowedHeaders()
        Returns:
        List of headers allowed.
      • allowedMethods

        public java.util.List<java.lang.String> allowedMethods()
        Returns:
        One or more HTTP methods that you allow the origin to execute. Can be `GET`, `PUT`, `POST`, `DELETE` or `HEAD`.
      • allowedOrigins

        public java.util.List<java.lang.String> allowedOrigins()
        Returns:
        One or more origins you want customers to be able to access the bucket from.
      • exposeHeaders

        public java.util.List<java.lang.String> exposeHeaders()
        Returns:
        One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript `XMLHttpRequest` object).
      • maxAgeSeconds

        public java.util.Optional<java.lang.Integer> maxAgeSeconds()
        Returns:
        Specifies time in seconds that browser can cache the response for a preflight request.