我正在构建一个使用多个 API 的 Chrome 扩展程序。目前我已经设置好了,这样我就可以使用其中一个 API,但是尝试在清单中添加第二个是行不通的。我尝试了几件事,导致扩展无法正常工作或清单文件无效。
"content_security_policy": "script-src 'self' https://domain-1.com; object-src 'self'",
"content_security_policy": "script-src 'self' https://domain-2.com; object-src 'self'"
给出无效的清单错误
"content_security_policy": "script-src 'self' https://domain-1.com; https://domain-2.com; object-src 'self'",
仅适用于第一个域
"content_security_policy": "script-src 'self' https://domain-1.com, https://domain-2.com; object-src 'self'",
给出无效的清单错误