betheme主题碰上了字体不显示Access to font at ~from origin

Access to font at ~from origin has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Failed to load resource: net::ERR_FAILED

话说这几乎同上篇文章一样, 但操作系统,这次用的是win2008搭建的。

<system.webServer>
   <httpProtocol>
     <customHeaders>
       <add name="Access-Control-Allow-Origin" value="*" />
     </customHeaders>
   </httpProtocol>
</system.webServer>

web.config中添加上面一段,注意如果有节点,添加至对应的节点中。

发表评论

电子邮件地址不会被公开。 必填项已用*标注