Class: Google::Cloud::Compute::V1::CorsPolicy
- Inherits:
-
Object
- Object
- Google::Cloud::Compute::V1::CorsPolicy
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/compute/v1/compute.rb
Overview
The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing
Instance Attribute Summary collapse
-
#allow_credentials ⇒ ::Boolean
In response to a preflight request, setting this to true indicates that the actual request can include user credentials.
-
#allow_headers ⇒ ::Array<::String>
Specifies the content for the Access-Control-Allow-Headers header.
-
#allow_methods ⇒ ::Array<::String>
Specifies the content for the Access-Control-Allow-Methods header.
-
#allow_origin_regexes ⇒ ::Array<::String>
Specifies the regualar expression patterns that match allowed origins.
-
#allow_origins ⇒ ::Array<::String>
Specifies the list of origins that will be allowed to do CORS requests.
-
#disabled ⇒ ::Boolean
If true, specifies the CORS policy is disabled.
-
#expose_headers ⇒ ::Array<::String>
Specifies the content for the Access-Control-Expose-Headers header.
-
#max_age ⇒ ::Integer
Specifies how long results of a preflight request can be cached in seconds.
Instance Attribute Details
#allow_credentials ⇒ ::Boolean
Returns In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header. Default is false.
3580 3581 3582 3583 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 3580 class CorsPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#allow_headers ⇒ ::Array<::String>
Returns Specifies the content for the Access-Control-Allow-Headers header.
3580 3581 3582 3583 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 3580 class CorsPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#allow_methods ⇒ ::Array<::String>
Returns Specifies the content for the Access-Control-Allow-Methods header.
3580 3581 3582 3583 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 3580 class CorsPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#allow_origin_regexes ⇒ ::Array<::String>
Returns Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see github.com/google/re2/wiki/Syntax An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
3580 3581 3582 3583 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 3580 class CorsPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#allow_origins ⇒ ::Array<::String>
Returns Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
3580 3581 3582 3583 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 3580 class CorsPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#disabled ⇒ ::Boolean
Returns If true, specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect.
3580 3581 3582 3583 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 3580 class CorsPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#expose_headers ⇒ ::Array<::String>
Returns Specifies the content for the Access-Control-Expose-Headers header.
3580 3581 3582 3583 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 3580 class CorsPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#max_age ⇒ ::Integer
Returns Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
3580 3581 3582 3583 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 3580 class CorsPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |