We have a font hosted on S3 as a woff and referenced via CSS. The S3 bucket has CORS configured to allow cross-site access from anywhere. Normally, the font displays with no issues. Sometimes, however, Firefox fails to render the font and the error console reports "bad URI or cross-site access not allowed". I'm trying, without much success, to figure out exactly what sequence of HTTP calls FF uses to obtain the font resource from S3 so I can debug the situation with curl. Thus far, debugging with
curl -s -I -X OPTIONS --header "Origin: http://www.foo.com" --header "Access-Control-Request-Method: GET" s3.amazonaws.com/font.woff
has yielded only HTTP 200 responses, i.e. provides no information about what might be failing. I'm kind of at a loss as to how to figure out what's going on. I don't know whether S3 is sporadically returning spurious 403 responses to the OPTIONS requests, 403 responses to the requests for the resource itself, or our HTML/CSS is somehow subtly broken and/or exposing a bug in FF. Any suggestions?