GetFunctionUrlCor constructor

const GetFunctionUrlCor({
  1. required Input<bool> allowCredentials,
  2. required Input<List<String>> allowHeaders,
  3. required Input<List<String>> allowMethods,
  4. required Input<List<String>> allowOrigins,
  5. required Input<List<String>> exposeHeaders,
  6. required Input<int> maxAge,
})

Creates a new GetFunctionUrlCor. allowCredentials Whether credentials are included in the CORS request. allowHeaders List of headers that are specified in the Access-Control-Request-Headers header. allowMethods List of HTTP methods that are allowed when calling the function URL. allowOrigins List of origins that are allowed to make requests to the function URL. exposeHeaders List of headers in the response that you want to expose to the origin that called the function URL. maxAge Maximum amount of time, in seconds, that web browsers can cache results of a preflight request.

Implementation

const GetFunctionUrlCor({
  required this.allowCredentials,
  required this.allowHeaders,
  required this.allowMethods,
  required this.allowOrigins,
  required this.exposeHeaders,
  required this.maxAge,
});