OptionsObjectCORS
    • PDF

    OptionsObjectCORS

    • PDF

    Article Summary

    最新のコンテンツが反映されていません。早急にアップデート内容をご提供できるよう努めております。最新のコンテンツ内容は韓国語ページをご参照ください。

    概要

    出処(origin)及びリクエストタイプとともにオブジェクトパスが指定されたOPTIONSリクエストを送ると、該当リクエストタイプで出処(origin)からオブジェクトへアクセスできるのかを確認します。
    他のリクエストとは異なり、OPTIONSリクエストを受ける場合にはauthorizationまたはx-amx-dateヘッダが必要ありません。

    リクエスト

    構文

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

    例示

    リクエスト例示

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

    レスポンス例示

    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
    

    この記事は役に立ちましたか?

    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.