Salta al contenuto

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?

posta 2 anni fa404 visualizzazioni
1 Risposta
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

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.