Ember-cli uygulamasımı 0.0.47'ye yükselttim ve şimdi tarayıcı konsolumda içerik güvenliği ilkesiyle ilgili bir sürü hata alıyorum. Bu sorunu nasıl gideririm? İşte Ember-cli sonra içerik güvenlik ilkesi yönergesi ihlali 0.0.47 Yükseltme
Refused to load the script 'http://use.typekit.net/abcdef.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' localhost:35729".
login:1
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' localhost:35729". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution.
login:20
Refused to load the script 'http://connect.facebook.net/en_US/all.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' localhost:35729".
login:1
Refused to load the script 'http://maps.googleapis.com/maps/api/js?libraries=places' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' localhost:35729".
benim app/index.html dosyasındaki satırları şunlardır:
http://content-security-policy.com/ ve
https://github.com/rwjblue/ember-cli-content-security-policy bazı dokümanlar okuduktan sonra
<script type="text/javascript" src="//use.typekit.net/abcdef.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places"></script>
bir şekilde S3 beyaz listeye gerek kullanılan
config/environment.js
dosyasında ancak API, bana hala oldukça opaktır –s3.amazonaws.com ile s3'ü beyaz listeye dahil ediyoruz, ancak ... Firefox'ta garip sorunlar yaşıyoruz. Chrome iyi çalışıyor gibi görünüyor. – ToddSmithSalter
Tüm joker karakterlere * * 'izin verebilirsiniz. Tüm liste: http://content-security-policy.com/#source_list –