How to resolve AWS S3 CORS error