Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap 如何启用Amazon S3 CORS for web资产以进行引导_Twitter Bootstrap_Amazon S3_Asset Sync - Fatal编程技术网

Twitter bootstrap 如何启用Amazon S3 CORS for web资产以进行引导

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

我正在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.com/assets/bootstrap/glyphicons-halflings-regular-70bff989a367eacb2d18f3a9fecf84ab.woff. This can be fixed by moving the resource to the same domain or enabling CORS.

有人能帮我解决这个问题吗。

我的方法是将字体放在单独的文件中,并使用普通的
标记将其包含在布局中。此处的更多详细信息:

为您的桶启用?是为我的桶启用CORS。