CORS Preflight (OPTIONS) Request Fails on StorageGRID
Applies to
- NetApp StorageGRID
- S3-compatible object storage buckets with CORS enabled
- Applications using CORS policies for cross-origin requests
Issue
- CORS-enabled applications accessing objects on StorageGRID experience failures during preflight (
OPTIONS) requests, resulting in blocked access or CORS errors in browsers - Error message in browser
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.
- Error in
bycastlogs on the grid:
ErrorMsg=InvalidRequest, ErrorType=Client, CustomErrorMessage={Found unsupported HTTP method in CORS configuration. Unsupported method is OPTIONS}, Details={AllowedMethod contains unsupported method.}
