An experiment in hosting static mixtape websites on S3, with the help of cors-bucket-list, a CORS-friendly proxy service that dishes up JSON listings of bucket contents.
- Create a Static Website on S3 and set the index document to
index.html
- Upload MP3s to a
songs
directory in your bucket. - Set the
bucket
variable in index.html to your bucket name. - Upload this repo to your bucket.
- Ensure all files in your bucket are publicly readable.
curl -H "Origin: http://example.com" --verbose
http://s3-mixtape-test.s3.amazonaws.com/songs/lunch.mp3