OptionsObjectCORS
    • PDF

    OptionsObjectCORS

    • PDF

    Article Summary

    Overview

    Checks whether the origin can access the object with the specified request type by making an OPTIONS request with the origin, request type and object path specified.
    Unlike other requests, OPTIONS requests do not require the authorization or the x-amx-date header.

    Request

    Syntax

    OPTIONS https://{endpoint}/{bucket-name}/{object-name} # path style
    OPTIONS https://{bucket-name}.{endpoint}/{object-name} # virtual host style
    

    Examples

    Request example

    OPTIONS /example-bucket/queen-bee HTTP/1.1
    Access-Control-Request-Method: PUT
    Origin: http://example.com
    Host: kr.object.ncloudstorage.com
    

    Response example

    HTTP/1.1 200 OK
    Date: Wed, 07 Dec 2016 16:23:14 GMT
    Accept-Ranges: bytes
    x-amz-request-id: 9a2ae3e1-76dd-4eec-a8f2-1a7f60f63483
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Methods: PUT
    Access-Control-Allow-Credentials: true
    Vary: Origin, Access-Control-Request-Headers, Access-Control-Allow-Methods
    Content-Length: 0
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.