Hell, I'm back with updated info...
On Sun, Dec 23, 2012 at 2:34 PM, Micky Hulse <
rgm...@gmail.com> wrote:
> Again though, I'm sure I was doing something wrong... I'll test again
> just to make sure wasn't overlooking something.
> I'll be back with more details.
So, here's the cobinations that I've tested:
[snip]
<Origins>
<Origin>*.
yyydomain.com</Origin>
</Origins>
<Origins>
<Origin>
sub.yyydomain.com</Origin>
</Origins>
<Origins>
<Origin>
sub.yyydomain.com</Origin>
<Origin>
yyydomain.com</Origin>
<Origin>*.
yyydomain.com</Origin>
</Origins>
[/snip]
After each CORS change, I cleared my browser cache (Firefox 17.0.1 on
Mac 10.8.2) using Web Developer Toolbar.
The CORS file is being loaded in a bucket named:
fonts.zzzdomain.com
... which has a CNAME of
zzzdomain.com.
The fonts are being called from:
yyydomain.com
sub.yyydomain.com
... the fonts CSS file is hosted here:
fonts.zzzdomain.com/type.css
I'm hosting a total of 4 web fonts.
Results:
Unfortunately, none of the above origin configurations appeared to do
the trick. On random refreshes (shift + refresh) would a font load (it
would be one, but not all).
I did not spend hours testing, so this was a very unscientific debug session. :D
As soon as I loaded this CORS file:
[snip]
<?xml version="1.0" encoding="UTF-8"?>
<CorsConfig>
<Cors>
<Origins>
<Origin>*</Origin>
</Origins>
<Methods>
<Method>GET</Method>
<Method>POST</Method>
<Method>HEAD</Method>
</Methods>
<ResponseHeaders>
<ResponseHeader>*</ResponseHeader>
</ResponseHeaders>
<MaxAgeSec>86400</MaxAgeSec>
</Cors>
</CorsConfig>
[/snip]
... and did a browser refresh, all the fonts loaded without problems.
Warning:
As you can probably tell, I am no CORS expert... I'm sure I'm doing
something wrong. I'm also new to hosting web fonts, so there could
also be a problem with my CSS or something similar.
Note:
If you'd like real domain and bucket names, please contact me off-list
and I will do whatever I can to provide the more sensitive details.
Happy Holidays!
Thanks!
Micky