,我得到以下錯誤:谷歌地圖API錯誤「爲由,拒絕加載字庫」我使用谷歌地圖在我angular2/Ionic2應用
js?libraries=geometry,drawing,places:79 Refused to load the font ' https://fonts.gstatic.com/s/roboto/v15/isZ-wbCXNKAbnjo6_TwHThJtnKITppOI_IvcXXDNrsc.woff2 ' because it violates the following Content Security Policy directive: "font-src 'self' data:".
這是什麼錯誤,我怎麼能解決這個問題?
我index.html
有:
<meta http-equiv="Content-Security-Policy" content="font-src 'self' data:; img-src * data:; default-src * 'unsafe-eval' 'unsafe-inline'">
<script src="https://maps.googleapis.com/maps/api/js?libraries=geometry,drawing,places"></script>
卸下meta
標籤解決了這個問題,但我不知道它做什麼,以及是否我應該將其刪除。