Class: Google::Cloud::Storage::Bucket::Cors::Rule
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::Storage::Bucket::Cors::Rule
 
 
- Defined in:
 - lib/google/cloud/storage/bucket/cors.rb
 
Overview
Bucket Cors Rule
Represents a website CORS rule for a bucket. Accessed via Google::Cloud::Storage::Bucket#cors.
Instance Attribute Summary collapse
- 
  
    
      #headers  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The list of header field names to send in the Access-Control-Allow-Headers header in the preflight response.
 - 
  
    
      #max_age  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The value to send in the Access-Control-Max-Age header in the preflight response.
 - 
  
    
      #methods  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The list of HTTP methods permitted in cross origin resource sharing with the bucket.
 - 
  
    
      #origin  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The origin or origins permitted for cross origin resource sharing with the bucket.
 
Instance Attribute Details
#headers ⇒ String
The list of header field names to send in the Access-Control-Allow-Headers header in the preflight response. Indicates the custom request headers that may be used in the actual request.
      174 175 176  | 
    
      # File 'lib/google/cloud/storage/bucket/cors.rb', line 174 def headers @headers end  | 
  
#max_age ⇒ String
The value to send in the
Access-Control-Max-Age header in the preflight response. Indicates
how many seconds the results of a preflight request can be cached
in a preflight result cache. The default value is 1800 (30
minutes.)
      174 175 176  | 
    
      # File 'lib/google/cloud/storage/bucket/cors.rb', line 174 def max_age @max_age end  | 
  
#methods ⇒ String
The list of HTTP methods permitted in cross origin resource sharing with the bucket. (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".
      174 175 176  | 
    
      # File 'lib/google/cloud/storage/bucket/cors.rb', line 174 def methods @methods end  | 
  
#origin ⇒ String
The origin or origins permitted for cross origin resource sharing with the bucket. Note: "*" is permitted in the list of origins, and means "any Origin".
      174 175 176  | 
    
      # File 'lib/google/cloud/storage/bucket/cors.rb', line 174 def origin @origin end  |