<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ssl Archives - Chris Gilligan » new media</title>
	<atom:link href="http://chrisgilligan.com/tag/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>https://chrisgilligan.com/tag/ssl/</link>
	<description>portfolio of web work</description>
	<lastBuildDate>Mon, 22 Jun 2015 12:39:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SSL and CloudFront CDN Support for WebFonts via .htaccess</title>
		<link>https://chrisgilligan.com/wordpress/add-cloudfront-cdn-support-for-webfonts-via-htaccess/</link>
					<comments>https://chrisgilligan.com/wordpress/add-cloudfront-cdn-support-for-webfonts-via-htaccess/#comments</comments>
		
		<dc:creator><![CDATA[Chris Gilligan]]></dc:creator>
		<pubDate>Wed, 05 Sep 2012 21:33:27 +0000</pubDate>
				<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[webfont]]></category>
		<category><![CDATA[webfonts]]></category>
		<guid isPermaLink="false">https://chrisgilligan.com/?p=1005</guid>

					<description><![CDATA[<p>I recently upgraded my WordPress theme to WooThemes Canvas 5.x, and I found that some of the icons were not rendering, but were showing a letter or integer instead. I dug into the code and found that these icons are now delivered via @font-face webfonts. Meanwhile, I&#8217;m working on a client&#8217;s e-commerce site with Google [&#8230;]</p>
<p>The post <a href="https://chrisgilligan.com/wordpress/add-cloudfront-cdn-support-for-webfonts-via-htaccess/">SSL and CloudFront CDN Support for WebFonts via .htaccess</a> appeared first on <a href="https://chrisgilligan.com">Chris Gilligan » new media</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="float: right; margin: 0 0 10px 15px; width:240px; height: auto;">
		<img src="https://d2lehxir4n36oh.cloudfront.net/wp-content/uploads/2012/09/twitter_font-face.png?x25141" width="240" style="max-width: 100%; height: auto;" />
		</p><p>I recently upgraded my WordPress theme to <a href="http://zfer.us/OtCqz">WooThemes Canvas 5.x</a>, and I found that some of the icons were not rendering, but were showing a letter or integer instead. I dug into the code and found that these icons are now delivered via @font-face webfonts.</p>
<p>Meanwhile, I&#8217;m working on a client&#8217;s e-commerce site with Google WebFonts and a custom webfont to display the Rupee symbol (Indian currency).</p>
<p>Though the fonts were uploading properly to the CloudFront CDN, and were properly referenced in the minified CSS on the CDN, they were not rendering in Firefox or IE, and the SSL pages on the client&#8217;s site were throwing security warnings.</p>
<p>At first I thought this might be a W3 Total Cache issue, because upgrading to the latest development release had solved some other CSS issues. However, it turned out to be a browser security issue.</p>
<p>Evidently this is a security measure to prevent cross-site attacks, but you can allow this via Apache mod_headers, to allow your specific CloudFront (or other) domain, specified in the .htaccess file.</p>
<p>Some sites have suggested using &#8220;*&#8221; wildcards to allow all domains&#8230; but obviously this is a security issue: with this Header, you are granting JavaScript clients basic access to your resources. I recommend you only allow access to the specific CDN domains you require. Do this with a comma separated list, in double quotes.</p>
<pre class="lang:default decode:true" title=".htaccess for CDN webfonts cross-site"># BEGIN CDN Cross-Site for Webfonts
&lt;IfModule mod_mime.c&gt;
        AddType font/ttf .ttf
        AddType font/eot .eot
        AddType font/opentype .otf
        AddType font/x-woff .woff
&lt;/IfModule&gt;
&lt;FilesMatch "\.(svg|ttf|otf|eot|woff)$"&gt;
    &lt;IfModule mod_headers.c&gt;
        Header set Access-Control-Allow-Origin "fonts.googleapis.com,{{yourdistro69}}.cloudfront.net"
    &lt;/IfModule&gt;
&lt;/FilesMatch&gt;
# END CDN Cross-Site for Webfonts</pre>
<p>Yay! Delicious webfonts, even on SSL pages via CDN!</p>
<p>The post <a href="https://chrisgilligan.com/wordpress/add-cloudfront-cdn-support-for-webfonts-via-htaccess/">SSL and CloudFront CDN Support for WebFonts via .htaccess</a> appeared first on <a href="https://chrisgilligan.com">Chris Gilligan » new media</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://chrisgilligan.com/wordpress/add-cloudfront-cdn-support-for-webfonts-via-htaccess/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Page Caching using Disk: Enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: d2lehxir4n36oh.cloudfront.net
Lazy Loading (feed)

Served from: chrisgilligan.com @ 2026-08-23 20:21:06 by W3 Total Cache
-->