Configure CORS And Expiry On The Bucket
Go to the AWS S3 console, click your bucket, then click the Properties button. You'll use the "Add CORS Configuration" button to configure your bucket to only allow PUT requests from particular origins.
You can use the following sample config -- edit to reflect your development, production and staging environments.