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?

preguntada hace un año225 visualizaciones
1 Respuesta
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

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas