<ruleset name="Cloudfront.net">

	<target host="*.cloudfront.net" />

	<rule from="^http:" to="https:" />
	<!-- from src/chrome/content/rules/Guild-Wars-2.xml  -->
	<test url="http://d15glo5zfrmw71.cloudfront.net/" />
	<test url="http://d1ej19d7kwigfi.cloudfront.net/" />
	<test url="http://d1h9a8s8eodvjz.cloudfront.net/" />

	<!-- from NYDailyNews.xml, used on classifieds.nydailynews.com -->
	<test url="http://dmpwow64jb5ov.cloudfront.net/resource/stylesheet/6d3a9c8bc9ebafc0bba40e52c5b86008/fef8e26fba7270d13c02bac0af00ec9d.css" />
	<test url="http://dmpwow64jb5ov.cloudfront.net/resource/javascript/6d3a9c8bc9ebafc0bba40e52c5b86008/0b13a3fc2c3955f1d27992bc6458d8a0.js" />

		<!--test url="http://d1o1wlqwda3y1b.cloudfront.net/A-NAL/CNVNAL-35096_31457369972thmb.jpg" /-->
		<!--test url="http://d1uc3ft0n4nkav.cloudfront.net/images/gradient_bg.png" /-->
		<!--test url="http://d235bdyk0zpoq6.cloudfront.net/assets/vibratissimo.jpg" /-->
		<!--test url="http://d2wcds7obmglv2.cloudfront.net/assets/default/nav-arrow.gif" /-->

	<!--	Attempt to work around "hang" after login for mapmyrun.com
		https://github.com/EFForg/https-everywhere/issues/4159
		report does not give any examples, so try all scripts. -->
	<exclusion pattern="^http://d2i3r43q6ffvz8\.cloudfront\.net/.+\.js" />
		<test url="http://d2i3r43q6ffvz8.cloudfront.net/prod/public/js/jquery/jquery-1.8.3.ddb54eca80f2.js?bust=3" />
		<test url="http://d2i3r43q6ffvz8.cloudfront.net/prod/public/js/min/core.11b1b69c86c5.js?bust=3" />
	<!-- Another subdomain that causes CORS issues on mapmyrun.com
		https://github.com/EFForg/https-everywhere/issues/5060  -->
	<exclusion pattern="^http://dxcqr918aoy1x.cloudfront.net/prod/public/js/" />
		<test url="http://dxcqr918aoy1x.cloudfront.net/prod/public/js/modules/core.6b60dedaba11.js?bust=3" />
		<test url="http://dxcqr918aoy1x.cloudfront.net/prod/public/js/jquery.plugins/jquery.selectivizr-min.ed32136af18c.js?bust=3" />

	<!-- This is a generalised precaution from turntable.fm
		(rewriting this file seems to break cross origin in flash) -->
	<exclusion pattern="^http://(\w+)\.cloudfront\.net/crossdomain\.xml" />
		<test url="http://d1h9a8s8eodvjz.cloudfront.net/crossdomain.xml" />
		<test url="http://d1ej19d7kwigfi.cloudfront.net/crossdomain.xml" />

	<!-- Fix PBS videos, see https://github.com/EFForg/https-everywhere/issues/1508  -->
	<exclusion pattern="^http://d3aef1qbbv7i5v\.cloudfront\.net/" />
		<test url="http://d3aef1qbbv7i5v.cloudfront.net/lib/jwplayer/jwplayer.js" />
		<test url="http://d3aef1qbbv7i5v.cloudfront.net/img/viral_player_sprite.png" />

	<!-- acinitiates.com fix -->
	<exclusion pattern="^http://(?:d3bn78kc7qbjb6|d1nawi9f7y8zrl)\.cloudfront\.net/" />
		<test url="http://d3bn78kc7qbjb6.cloudfront.net/rc-0.0.0.392/views/logs/logs.html" />
		<test url="http://d1nawi9f7y8zrl.cloudfront.net/content/v1/content?ver=1.0.0" /> <!-- http://d1nawi9f7y8zrl.cloudfront.net/content/v1/content?ver=1.0.0&lang=en -->

	<!-- See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html
		Policies contain the protocol, so a signature for http will not work for https -->
	<exclusion pattern="&amp;Signature=" />
		<test url="http://d1h9a8s8eodvjz.cloudfront.net/test.txt?a=b&amp;Signature=1234" />
		<test url="http://d1h9a8s8eodvjz.cloudfront.net/test.txt?a=b&amp;Signature=5678" />

	<!-- Fix trailers playing on rottentomatoes.com e.g. http://www.rottentomatoes.com/m/the_revenant_2015/ -->
	<!-- HTTPS seems to work, but it appears to force HTTP -->
	<exclusion pattern="^http://d3biamo577v4eu\.cloudfront\.net/" />
		<test url="http://d3biamo577v4eu.cloudfront.net/static/js/lib/jwplayer-7.2.3/jwplayer.flash.swf" />
		<test url="http://d3biamo577v4eu.cloudfront.net/static/images/icons/favicon.ico" />

	<!-- Fix #3380 -->
	<exclusion pattern="^http://d3s2wlph6mu7bx\.cloudfront\.net/" />
		<test url="http://d3s2wlph6mu7bx.cloudfront.net/items/249704.svgz?http_iplan.meetingmatrix.com" />

	<!-- Fix #10274 -->
	<exclusion pattern="^http://dp8hsntg6do36\.cloudfront\.net/" />
		<test url="http://dp8hsntg6do36.cloudfront.net/592cec6fb57ac33db6000000/933f5741-b748-4ad4-b5a9-cd7991915a97manifest-ios.m3u8" />

	<!-- Fix CORS issues on http://satview.bom.gov.au/ (#3021) -->
	<exclusion pattern="^http://d30f2i1nzx9v71.cloudfront.net/himawari/" />
		<test url="http://d30f2i1nzx9v71.cloudfront.net/himawari/IDE00436/Himawari/timesteps.json?_=1519134824790" />
		<test url="http://d30f2i1nzx9v71.cloudfront.net/himawari/text/IDY28000_TEX.txt" />

	<!-- Fix CORS issues preventing map display.
		See https://github.com/EFForg/https-everywhere/issues/3045 for more info
	-->
	<exclusion pattern="^http://dcxc7a0ls04u1\.cloudfront\.net/d/" />
		<test url="http://dcxc7a0ls04u1.cloudfront.net/d/campaign-offices.csv" />
		<test url="http://dcxc7a0ls04u1.cloudfront.net/d/us_postal_codes.gz" />

</ruleset>
