InboxSDK icon indicating copy to clipboard operation
InboxSDK copied to clipboard

Not Compitable with Chrome extension MV3

Open nirvparekh opened this issue 4 years ago • 2 comments

Getting error in Gmail from content script. `contentScript.bundle.js:54998 Error logged: EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".

at eval (<anonymous>)
at contentScript.bundle.js:54820 

Original error stack: EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".

at eval (<anonymous>)
at chrome-extension://ipjpliddiedabogjnnnkaojcfaiccbdm/contentScript.bundle.js:54820:27 

Error logged from: at logError (chrome-extension://ipjpliddiedabogjnnnkaojcfaiccbdm/contentScript.bundle.js:54976:56) at chrome-extension://ipjpliddiedabogjnnnkaojcfaiccbdm/contentScript.bundle.js:54861:38

Error details: {url: 'https://www.inboxsdk.com/build/platform-implementation.js', connectivityTestResults: {…}, status: undefined, response: null, message: 'Failed to load script'}`

nirvparekh avatar Oct 05 '21 10:10 nirvparekh

The InboxSDK doesn't support MV3 yet because of its current reliance on remote loading code. There's some information here about it: https://groups.google.com/g/inboxsdk/c/ho69zTWjxgM/m/PhrWenZcAQAJ. The InboxSDK will be MV3-compatible before it becomes required by Chrome.

Macil avatar Oct 06 '21 11:10 Macil

The InboxSDK doesn't support MV3 yet because of its current reliance on remote loading code. There's some information here about it: https://groups.google.com/g/inboxsdk/c/ho69zTWjxgM/m/PhrWenZcAQAJ. The InboxSDK will be MV3-compatible before it becomes required by Chrome.

Thanks @Macil for the update;

nirvparekh avatar Oct 06 '21 11:10 nirvparekh

that's unfortunate

MalikElate avatar Dec 26 '22 01:12 MalikElate

@MalikElate this is no longer the case, the InboxSDK now supports MV3

aleemstreak avatar Dec 26 '22 04:12 aleemstreak

@aleemstreak Can you let me know what is required for inboxSDK v2. i am getting same error

mayurfefar avatar Feb 28 '23 15:02 mayurfefar

Me too. Getting this:

Error logged: EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost:* http://127.0.0.1:*". Original error stack: EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost:* http://127.0.0.1:*".

tiagozip avatar Apr 01 '23 18:04 tiagozip