Google Cloud Storage C++ Client  1.40.2
A C++ Client Library for Google Cloud Storage
Public Attributes | List of all members
google::cloud::storage::CorsEntry Struct Reference

An entry in the CORS list. More...

#include <google/cloud/storage/bucket_metadata.h>

Public Attributes

absl::optional< std::int64_t > max_age_seconds
std::vector< std::string > method
std::vector< std::string > origin
std::vector< std::string > response_header

Detailed Description

An entry in the CORS list.

CORS (Cross-Origin Resource Sharing) is a mechanism to enable client-side cross-origin requests. An entry in the configuration has a maximum age and a list of allowed origin and methods, as well as a list of returned response headers.

See also for general information on CORS. for general information about CORS in the context of Google Cloud Storage. for information on how to set and troubleshoot CORS settings.

Definition at line 98 of file bucket_metadata.h.

Member Data Documentation

◆ max_age_seconds

absl::optional<std::int64_t> google::cloud::storage::CorsEntry::max_age_seconds

Definition at line 99 of file bucket_metadata.h.

◆ method

std::vector<std::string> google::cloud::storage::CorsEntry::method

Definition at line 100 of file bucket_metadata.h.

◆ origin

std::vector<std::string> google::cloud::storage::CorsEntry::origin

Definition at line 101 of file bucket_metadata.h.

◆ response_header

std::vector<std::string> google::cloud::storage::CorsEntry::response_header

Definition at line 102 of file bucket_metadata.h.