0
votes

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.

1

1 Answers

0
votes

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.