Google Cloud Storage C++ Client  1.32.1
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
https://en.wikipedia.org/wiki/Cross-origin_resource_sharing for general information on CORS.
https://cloud.google.com/storage/docs/cross-origin for general information about CORS in the context of Google Cloud Storage.
https://cloud.google.com/storage/docs/configuring-cors for information on how to set and troubleshoot CORS settings.

Definition at line 100 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 101 of file bucket_metadata.h.

◆ method

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

Definition at line 102 of file bucket_metadata.h.

◆ origin

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

Definition at line 103 of file bucket_metadata.h.

◆ response_header

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

Definition at line 104 of file bucket_metadata.h.