Twitter bootstrap 如何启用Amazon S3 CORS for web资产以进行引导
我正在AmazonS3中使用用于rails的asset\u syncgem来托管twitter引导资源。在除Firefox之外的其他浏览器上,即使有一点警告,我似乎也可以正常工作。在Firefox中,它显示奇怪的字符,而不是引导字体图标。firebug控制台出现如下错误:Twitter bootstrap 如何启用Amazon S3 CORS for web资产以进行引导,twitter-bootstrap,amazon-s3,asset-sync,Twitter Bootstrap,Amazon S3,Asset Sync,我正在AmazonS3中使用用于rails的asset\u syncgem来托管twitter引导资源。在除Firefox之外的其他浏览器上,即使有一点警告,我似乎也可以正常工作。在Firefox中,它显示奇怪的字符,而不是引导字体图标。firebug控制台出现如下错误: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ... s3.amazonaws.c
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ... s3.amazonaws.com/assets/bootstrap/glyphicons-halflings-regular-70bff989a367eacb2d18f3a9fecf84ab.woff. This can be fixed by moving the resource to the same domain or enabling CORS.
有人能帮我解决这个问题吗。我的方法是将字体放在单独的文件中,并使用普通的
标记将其包含在布局中。此处的更多详细信息:为您的桶启用?是为我的桶启用CORS。