End of support notice: On November 13, 2025, AWS will discontinue support
for AWS Elemental MediaStore. After November 13, 2025, you will no longer be able to access the MediaStore console
or MediaStore resources. For more information, visit this
blog post
Troubleshooting CORS issues
If you encounter unexpected behavior when you access a container that has a CORS policy, follow these steps to troubleshoot the issue.
-
Verify that the CORS policy is attached to the container.
For instructions, see Viewing a CORS policy.
-
Capture the complete request and response using a tool of your choice (such as your browser's developer console). Verify that the CORS policy that is attached to the container includes at least one CORS rule that matches the data in your request, as follows:
-
Verify that the request has an
Originheader.If the header is missing, AWS Elemental MediaStore does not treat the request as a cross-origin request and does not send CORS response headers back in the response.
-
Verify that the
Originheader in your request matches at least one of theAllowedOriginselements in the specificCORSRule.The scheme, the host, and the port values in the
Originrequest header must match theAllowedOriginsin theCORSRule. For example, if you setCORSRuleto allow the originhttp://www.example.com, then bothhttps://www.example.comandhttp://www.example.com:80origins in your request do not match the allowed origin in your configuration. -
Verify that the method in your request (or the method specified in the
Access-Control-Request-Methodin case of a preflight request) is one of theAllowedMethodselements in the sameCORSRule. -
For a preflight request, if the request includes an
Access-Control-Request-Headersheader, verify that theCORSRuleincludes theAllowedHeadersentries for each value in theAccess-Control-Request-Headersheader.
-