Complete the code to allow all origins in the CORS configuration for an S3 bucket.
{
"CORSRules": [
{
"AllowedOrigins": ["[1]"],
"AllowedMethods": ["GET"]
}
]
}Using "*" in AllowedOrigins allows all origins to access the resource.
Complete the code to allow the POST method in the CORS configuration.
{
"CORSRules": [
{
"AllowedOrigins": ["https://example.com"],
"AllowedMethods": ["GET", "[1]"]
}
]
}Adding "POST" to AllowedMethods allows POST requests from the specified origin.
Fix the error in the CORS configuration by completing the missing header name.
{
"CORSRules": [
{
"AllowedOrigins": ["https://example.com"],
"AllowedMethods": ["GET"],
"AllowedHeaders": ["[1]"]
}
]
}"Content-Type" header is commonly required to allow browsers to send content type information in requests.
Fill the blanks to allow GET and PUT methods from any origin.
{
"CORSRules": [
{
"AllowedOrigins": [[1]],
"AllowedMethods": [[2], [3]]
}
]
}"*" allows all origins, "GET" and "PUT" allow those methods from any origin.
Fill all three blanks to allow POST and DELETE methods from https://myapp.com with headers Authorization and Content-Type.
{
"CORSRules": [
{
"AllowedOrigins": [[1]],
"AllowedMethods": [[2], [3]],
"AllowedHeaders": ["Authorization", "Content-Type"]
}
]
}AllowedOrigins must be the specific origin "https://myapp.com". AllowedMethods include "POST" and "DELETE" as requested.