Storage Browser for S3 구성
Storage Browser for S3 구성
Storage Browser for S3가 S3 버킷에 접근할 수 있도록, Storage Browser 컴포넌트는 Amazon S3에 REST API 호출을 해요. 기본적으로 S3 버킷에서는 교차 출처 리소스 공유(CORS)가 활성화되어 있지 않아요. 따라서 Storage Browser가 데이터를 가져오는 각 S3 버킷에 대해 CORS를 활성화해야 해요.
예를 들어 S3 버킷에서 CORS를 활성화하려면 CORS 정책을 다음과 같이 업데이트할 수 있어요:
[
{
"ID": "S3CORSRuleId1",
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"HEAD",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [
"last-modified",
"content-type",
"content-length",
"etag",
"x-amz-version-id",
"x-amz-request-id",
"x-amz-id-2",
"x-amz-cf-id",
"x-amz-storage-class",
"date",
"access-control-expose-headers"
],
"MaxAgeSeconds": 3000
}
]