You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using CSP headers - without "'unsafe-eval'" being permitted, push-notifications-web fails to initialise the client. Errors with more detail below.
Note. We are already permitting "https://js.pusher.com/beams/service-worker.js" within a "script-src" value.
v 1.1.0
FIREFOX
EvalError: call to Function() blocked by CSP
u push-notifications-esm.js:759
48719 push-notifications-esm.js:32
Content Security Policy: The page's settings blocked the loading of a resource at eval ("script-src")
It is hitting the accidentalStrictMode catch which I think is coming from regeneratorRuntime, within push-notifications-esm.js
CHROME
Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://js.pusher.com/beams/service-worker.js' failed to load.
Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('https://our-url.com') with script ('https://our-url.com/service-worker.js?pusherBeamsWebSDKVersion=1.1.0'): ServiceWorker script evaluation failed
V 2.0.0-beta.2
CHROME:
Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('https://our-url.com') with script ('https://our-url.com/service-worker.js?pusherBeamsWebSDKVersion=2.0.0-beta.2'): ServiceWorker script evaluation failed
FIREFOX:
Uncaught (in promise) TypeError: ServiceWorker script at https://our-url.com/service-worker.js?pusherBeamsWebSDKVersion=2.0.0-beta.2 for scope https://our-url.com/ threw an exception during script evaluation.
The text was updated successfully, but these errors were encountered:
When using CSP headers - without "'unsafe-eval'" being permitted, push-notifications-web fails to initialise the client. Errors with more detail below.
Note. We are already permitting
"https://js.pusher.com/beams/service-worker.js"
within a"script-src"
value.v 1.1.0
FIREFOX
It is hitting the
accidentalStrictMode
catch which I think is coming fromregeneratorRuntime
, within push-notifications-esm.jsCHROME
V 2.0.0-beta.2
CHROME:
FIREFOX:
The text was updated successfully, but these errors were encountered: