Google Cloud Storage C++ Client  1.26.0
A C++ Client Library for Google Cloud Storage
Public Attributes | List of all members
google::cloud::storage::v1::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 97 of file bucket_metadata.h.

Member Data Documentation

◆ max_age_seconds

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

Definition at line 98 of file bucket_metadata.h.

◆ method

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

Definition at line 99 of file bucket_metadata.h.

◆ origin

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

Definition at line 100 of file bucket_metadata.h.

◆ response_header

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

Definition at line 101 of file bucket_metadata.h.