I have this error in implementing chrome extension. Refused to load the script 'https://apis.google.com/js/platform.js' because it violates the following Content Security Policy directive: "script-src 'self' https://apis.google.com/js/api.js 'unsafe-inline' 'unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
Asked
Active
Viewed 114 times
1 Answers
0
In Chrome Extension manifest v3 remotely hosted code is no longer allowed. And inline scripts.
Pls see How can I use the Google API in a chrome extension? for workarounds.

granty
- 7,234
- 1
- 14
- 21