Runbook

CORS error while accessing S3 bucket.

Back to Runbooks

Overview

This incident type relates to encountering a Cross-Origin Resource Sharing (CORS) error while trying to access an S3 object from a bucket. In order to troubleshoot this issue, it is necessary to ensure that the CORS configuration is properly set on the bucket and that the request headers match the allowed origin, method, and headers specified in the configuration. The recommended steps include verifying the presence of the Origin header, capturing the complete request and response, and checking that the method and headers in the request align with the allowed values in the CORS rule.

Parameters

Debug

Verify the CORS configuration of a bucket

Check if the Origin header in the request matches the allowed origin in the CORS configuration

Check if the method in the request matches the allowed method in the CORS configuration

Check if the headers in the request match the allowed headers in the CORS configuration

Repair

Update the CORS configuration to match the expected values.Verify that the CORS configuration is properly set on the bucket.

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.