Adds custom security headers to an AWS Amplify App to enhance security.

Terraform Template

resource "aws_amplify_app" "example" {
  custom_headers = <<-EOF
    customHeaders:
    - pattern: '**'
    headers:
    - key: 'Strict-Transport-Security'
    value: 'max-age=31536000; includeSubDomains'
    - key: 'X-Frame-Options'
    value: 'SAMEORIGIN'
    - key: 'X-XSS-Protection'
    value: '1; mode=block'
    - key: 'X-Content-Type-Options'
    value: 'nosniff'
    - key: 'Content-Security-Policy'
    value: "default-src 'self'"
    
  EOF
  name = "example"
}