From 090fe909149f22d158c859a7d4a9edfb523df2fb Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 17 Jan 2018 18:47:05 +0000 Subject: [PATCH] Make dev sites serve crossdomain.xml with correct MIME type --- cookbooks/dev/templates/default/apache.rails.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbooks/dev/templates/default/apache.rails.erb b/cookbooks/dev/templates/default/apache.rails.erb index e431cf1a1..983d1daf7 100644 --- a/cookbooks/dev/templates/default/apache.rails.erb +++ b/cookbooks/dev/templates/default/apache.rails.erb @@ -23,6 +23,11 @@ # Ensure robots do not index dev site # https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag Header set X-Robots-Tag "noindex, nofollow" + + # Force special MIME type for crossdomain.xml files + + ForceType text/x-cross-domain-policy + -- 2.39.5