StorageGRIDでCORSプリフライト(OPTIONS)要求が失敗する
環境
- NetApp StorageGRID
- CORSが有効になっているS3互換のオブジェクトストレージバケット
- クロスオリジンリクエストにCORSポリシーを使用するアプリケーション
問題
- StorageGRID上のオブジェクトにアクセスするCORS対応アプリケーションでプリフライト(
OPTIONS)要求中にエラーが発生し、アクセスがブロックされるか、ブラウザでCORSエラーが発生します - ブラウザのエラーメッセージ
Access to image at 'https://object-storage/object' from origin 'https://xxxxx' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- グリッド上の
bycastログのエラー:
ErrorMsg=InvalidRequest, ErrorType=Client, CustomErrorMessage={Found unsupported HTTP method in CORS configuration. Unsupported method is OPTIONS}, Details={AllowedMethod contains unsupported method.}