价值'来源 - 当时起源'不是'无推荐人'之一

时间:2017-06-18 12:29:07

标签: javascript css node.js cors

我有一个Nodejs应用程序,它在Windows(Chrome,Firefox,Edge)中运行良好。但是当我在Macbook(Safari)中测试它时,它无法加载“Google Material Icon”并且无法从服务器获得响应!我绑定到 console.log(req.referrer),我刚刚从Macbook(Safari)获得了“未定义”。我该如何解决?

如果这个网站很重要,我正在使用Cloudflaer CNAME!

我的“Google Matrial Icon”CSS代码:

@font-face {
 font-family: 'Material Icons';
 font-style: normal;
 font-weight: 400;
 src: local('Material Icons'), local('MaterialIcons-Regular'), url(https://fonts.gstatic.com/s/materialicons/v22/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}
/* Grid System Start */

这是我的主页HTML代码:

<!DOCTYPE html>
<html ng-app="myApp" ng-controller="MyCtrl">

 <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
  <title>my appd</title>
  <meta charset='utf-8'>
  <meta content="origin-when-cross-origin" name="referrer" />
  <meta name="keywords" content="" />
  <meta name="description" content="">
  <meta name="author" content="me.net">

  <!-- CSS Files -->
  <link crossorigin="anonymous" media="all" rel="stylesheet" type="text/css" href="/css/styles.css">
  <link crossorigin="anonymous" media="all" rel="stylesheet" type="text/css" href="/css/responsive.css">

  <!-- View port meta tags for responsive events and device detecting -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta http-equiv="Content-Language" content="en">

  <meta name="referrer" content="*">
  <meta name="viewport" content="width=device-width">

  <meta content="https://avatars0.githubusercontent.com/u/22558940?v=3&amp;s=400" property="og:image" />
  <meta content="" property="og:site_name" />
  <meta content="object" property="og:type" />
  <meta content="" property="og:title" />
  <meta content="" property="og:url" />
  <meta content="" property="og:description" />
  <meta name="browser-stats-url" content="">
  <meta name="browser-errors-url" content="">

  <base href="/"> 

错误截图: enter image description here

0 个答案:

没有答案