1 Answer
- Newest
- Most votes
- Most comments
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.
answered a year ago
Relevant content
- asked a year ago
- asked 10 months ago
- asked 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Are you hosting the website in S3?