Cloudfront: Is there an easy way to remove multiple response headers?

0

Background

By default, AWS adds a couple of very revealing information in the response headers of a setup using CloudFront and codebuild. Among others are x-amz-meta-codebuild-buildarn is revealed stating the internal ARN of codebuild (including the internal name used for the project).

Little feedback on the side: Would be nice, if AWS would stop sending those by default.

CloudFront provides a way to remove headers, but only in one-entry-at-a-time-text-box-fashion without wildcard support. So one needs to copy and paste every single header into that list.

Question

Is there another way I'm not seeing to more easily remove those headers?

*edit:*I just figured, the following headers are not even removable/overwritable at all: x-amz-cf-id, x-amz-cf-pop, x-cache, which is a pitty :(

Peter
질문됨 일 년 전870회 조회
1개 답변
0

Hi,

you are correct. there is no way to remove headers such as x-amz-cf-id.

profile picture
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠