Setting up content Security policy Header for base 64 file in website

0

I want to setting up content Security policy Header for base 64 file in my website. Can i use CloudFront to set up the content Security policy Header for base 64 file ?

My website is hosted in EC2 with load balancer

  • Are you hosting the website in S3?

質問済み 1年前226ビュー
1回答
0

Since you are hosting site on EC2, You can set any headers you want.

But if you are asking, can you setup custom headers on CloudFront response? the answer is yes you can setup a static header "Content-Security-Policy". But if you want to change the headers dynamically you would need to use your web server or application on EC2 to generate that.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html#understanding-response-headers-policies-custom

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ