Sau khi đã upload mã nguồn frontend lên S3 Bucket, bạn cần bật tính năng static website hosting, cấu hình file index, error, thiết lập policy CORS và cấp quyền public để website chạy ổn định, truy cập được từ trình duyệt và có thể kết nối tới API backend.
Bật static website hosting cho bucket

index.html cho trường Index document.index.html cho trường Error document (nên dùng nếu bạn triển khai SPA).
http://fcjfashionshop.com.s3-website-ap-southeast-1.amazonaws.com

Cấu hình CORS cho bucket

[
{
"AllowedOrigins": ["*"],
"AllowedMethods": ["GET", "HEAD", "PUT", "POST", "DELETE"],
"AllowedHeaders": ["*"]
}
]
[
{
"AllowedOrigins": ["https://your-domain.com"],
"AllowedMethods": ["GET", "HEAD"],
"AllowedHeaders": ["*"]
}
]