How to use Google +1 in a content script without Content Security Policy error?
问题 I'm trying to build chrome extension that uses +1 google api. My manifest.json looks like: "manifest_version": 2, "content_security_policy": "script-src 'self' https://apis.google.com; object-src 'self'", ... "matches": ["http://demosite.com/*"], "js": ["js/jquery.js","js/social/plusone.js"] As you can see I've whitelisted apis.google.com. My plusone.js looks like: var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text