I'm trying to develop a Chrome extension that recognises speech in Google meet using Microsoft cognitive speech service. While trying to implement this, I'm getting the following errors
ERROR:
Refused to create a worker from 'blob:https://meet.google.com/4f586067-ea8f-4e7f-9215-51ef426d3c9a' because it violates the following Content Security Policy directive: "worker-src 'self'".
Refused to create a worker from 'blob:https://meet.google.com/4f586067-ea8f-4e7f-9215-51ef426d3c9a' because it violates the following Content Security Policy directive: "script-src 'nonce-+MDEaQqsMKs++6oR20YT3Q' 'unsafe-eval' 'self' ". Note that 'worker-src' was not explicitly set, so 'script-src' is used as a fallback.
I tried to resolve this error by adding "content_security_policy" in manifest.json.
"content_security_policy" : "script-src 'self'; script-src-elem 'self' data: blob:; worker-src 'self' data: blob:; object-src 'self'"
I am getting security error in cancel event of Azure speech recognition
SecurityError: Failed to construct 'Worker': Access to the script at 'blob:' is denied by the document's Content Security Policy
Also tried by downloading the sdk to my extension package and using it from there instead using the cdn link below directly in the script. But still the same error is throwing.
Azure speech service cdn: https://cdn.jsdelivr.net/npm/microsoft-cognitiveservices-speech-sdk@latest/distrib/browser/microsoft.cognitiveservices.speech.sdk.bundle-min.js
Can anybody please help me to solve this CSP issue with chrome extension?