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
Origin
header.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
Origin
header in your request matches at least one of theAllowedOrigins
elements in the specificCORSRule
.The scheme, the host, and the port values in the
Origin
request header must match theAllowedOrigins
in theCORSRule
. For example, if you setCORSRule
to allow the originhttp://www.example.com
, then bothhttps://www.example.com
andhttp://www.example.com:80
origins 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-Method
in case of a preflight request) is one of theAllowedMethods
elements in the sameCORSRule
. -
For a preflight request, if the request includes an
Access-Control-Request-Headers
header, verify that theCORSRule
includes theAllowedHeaders
entries for each value in theAccess-Control-Request-Headers
header.
-