Class FunctionUrlCors


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

      • allowCredentials

        public java.util.Optional<java.lang.Boolean> allowCredentials()
        Returns:
        Whether to allow cookies or other credentials in requests to the function URL.
      • allowHeaders

        public java.util.List<java.lang.String> allowHeaders()
        Returns:
        HTTP headers that origins can include in requests to the function URL.
      • allowMethods

        public java.util.List<java.lang.String> allowMethods()
        Returns:
        HTTP methods that are allowed when calling the function URL.
      • allowOrigins

        public java.util.List<java.lang.String> allowOrigins()
        Returns:
        Origins that can access the function URL.
      • exposeHeaders

        public java.util.List<java.lang.String> exposeHeaders()
        Returns:
        HTTP headers in your function response that you want to expose to origins that call the function URL.
      • maxAge

        public java.util.Optional<java.lang.Integer> maxAge()
        Returns:
        Maximum amount of time, in seconds, that web browsers can cache results of a preflight request. Maximum value is `86400`.