if @ec2_tag_client_name == 'farmersfire' and @ec2_tag_smore_type == 'live' and @ec2_tag_environment == 'britecore'
puts "add_header Content-Security-Policy frame-ancestors 'self' *.farmersfire.com;"
elsif ['vel','vru'].include? @ec2_tag_client_name[0,3] and @ec2_tag_smore_type != 'live' and @ec2_tag_environment == 'britecore'
puts "add_header Content-Security-Policy frame-ancestors 'self' *.britecorepro.com;"
else
puts "add_header X-Frame-Options SAMEORIGIN;"
end
if @ec2_tag_client_name == 'farmersfire' and @ec2_tag_smore_type == 'live' and @ec2_tag_environment == 'britecore'
puts "add_header Content-Security-Policy frame-ancestors 'self' *.farmersfire.com;"
elsif @ec2_tag_client_name and ['vel','vru'].include? @ec2_tag_client_name[0,3] and @ec2_tag_smore_type != 'live' and @ec2_tag_environment == 'britecore'
puts "add_header Content-Security-Policy frame-ancestors 'self' *.britecorepro.com;"
else
puts "add_header X-Frame-Options SAMEORIGIN;"
end