jquery滑块不工作得到错误消息“http://fortawesome.github.io”已被跨源资源共享阻止加载。“ [英] jquery slider not working got error message "http://fortawesome.github.io' has been blocked from loading by Cross-Origin Resource Sharing.."

查看:126
本文介绍了jquery滑块不工作得到错误消息“http://fortawesome.github.io”已被跨源资源共享阻止加载。“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自http://fortawesome.github.io的字体已被阻止通过跨源资源共享策略加载:请求的资源上没有Access-Control-Allow-Origin标头。原因'http:// localhost:2057'因此不允许访问。

解决方案

您只需要下载fontawesome,安装它,并将您的css链接更改为引用它。



你应该有一条线:



 <   head  >  
< span class =code-keyword>< link rel = stylesheet href = http:// fortawesome.github.io / > ;
< / head >





在本地获得css和字体文件后,请更改为:



 <! -     HREF是您的fontawesome.css所在的位置   - >   
< link rel = 样式表 href = / Content / fontawesome.css / >


Font from origin 'http://fortawesome.github.io' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:2057' is therefore not allowed access.

解决方案

You just need to download fontawesome, install it, and change your css link to reference it.

You should have a line:

<head>
    <link rel="stylesheet" href="http://fortawesome.github.io" />
</head>



Once you have the css and font files locally, change to:

<!-- The HREF is where your fontawesome.css is located -->
<link rel="stylesheet" href="/Content/fontawesome.css" />


这篇关于jquery滑块不工作得到错误消息“http://fortawesome.github.io”已被跨源资源共享阻止加载。“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆