Google Cloud Storage C++ Client  2.5.0
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_cors_entry.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 47 of file bucket_cors_entry.h.

Member Data Documentation

◆ max_age_seconds

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

Definition at line 48 of file bucket_cors_entry.h.

◆ method

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

Definition at line 49 of file bucket_cors_entry.h.

◆ origin

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

Definition at line 50 of file bucket_cors_entry.h.

◆ response_header

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

Definition at line 51 of file bucket_cors_entry.h.