This section introduces the process of enabling S3 CORS applying CORS configuration with your S3 buckets and checking if it works uploading a sample JSON code.
You do not have to request permissions to enable S3 CORS. All you need to do is:
First, we configure the CORS configuration to the S3 bucket through the S3 console, and verify that the CORS configuration is applied by putting a JSON file in your S3 bucket and an HTML file in a web server on the EC2 instance. The JSON file named
test.json holds sample data (
username) in the JSON format. The HTML file ...