Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Object Storage
  • Terraform reference
    • Authentication with the API
      • How to use the API
      • Signing requests
        • All services and methods
          • All methods
          • upload
          • get
          • patch
          • copy
          • getObjectMeta
          • delete
          • deleteMultipleObjects
          • options
          • selectObjectContent
          • putObjectRetention
          • putObjectLegalHold
          • getObjectRetention
          • getObjectLegalHold
          • putObjectTagging
          • getObjectTagging
          • deleteObjectTagging
        • Common request headers
        • Common response headers
        • Responses
  • Monitoring metrics
  • Audit Trails events
  • Bucket logs
  • Release notes
  • FAQ

In this article:

  • Request
  • Path parameters
  • Headers
  • Response
  • Headers
  • Response codes
  1. API reference
  2. REST (Amazon S3-compatible)
  3. REST
  4. Object
  5. options

options method

Written by
Yandex Cloud
Updated at March 19, 2025
  • Request
    • Path parameters
    • Headers
  • Response
    • Headers
    • Response codes

Checks whether a CORS request to an object can be made.

For more information on getting started with the API and the general request format, see How to use the S3 API.

RequestRequest

OPTIONS /{bucket}/{key} HTTP/2

Path parametersPath parameters

Parameter Description
bucket Bucket name.
key Object key. ID for saving the object in Object Storage.

HeadersHeaders

Header Description
Origin Request source domain.

For example, http://www.example.com.

It is required.
Access-Control-Request-Method HTTP method for making a request to a resource.

It is required.
Access-Control-Request-Headers List of headers to send in a subsequent request to the object. Headers are separated by commas.

It is optional.

Make sure to also use the required common headers.

ResponseResponse

HeadersHeaders

In addition to common headers, responses may contain:

Header Description
Access-Control-Allow-Origin Domain provided in the Origin header of the request.

If the CORS configuration has its AllowedOrigin element set to *, then the Access-Control-Allow-Origin header value will also be *.

If access from the domain is denied, Object Storage will return error 403 and there will be no Access-Control-* headers present.
Access-Control-Max-Age Allowed response caching time, in seconds.
Access-Control-Allow-Methods Allowed request methods. If there are no allowed methods, Object Storage will return error 403 and there will be no Access-Control-* headers present.
Access-Control-Allow-Headers List of HTTP headers that can be used in a subsequent request to the object. If there are no headers allowed, this header is not included in a response.
Access-Control-Expose-Headers List of HTTP headers that the JavaScript client receives.

Response codesResponse codes

The method returns the following:

  • 200: If requests to the object are allowed.
  • 403: If requests to the object are not allowed.

For a detailed description of response codes, see Responses.

See alsoSee also

  • Debugging requests using the AWS CLI
  • Example of sending a signed request using curl
  • Code example for generating a signature

Was the article helpful?

Previous
deleteMultipleObjects
Next
selectObjectContent
© 2025 Direct Cursus Technology L.L.C.