OneSignal is a free push notification service for web and mobile apps. This plugin makes it easy to integrate your website with OneSignal Push Notifications. https://onesignal.com
Other
80
stars
42
forks
source link
ERROR: Uncaught (in promise) DOMException: Failed to update a ServiceWorker for scope with script ('OneSignalSDKWorker.js.php'): The script has an unsupported MIME type ('text/html') #238
Description:
Latest release of Chrome/Brave Browser [80.0.3987.132 (Official Build) (64-bit)] is getting the following error in the console and failing to load OneSignal:
ERROR: Uncaught (in promise) DOMException: Failed to update a ServiceWorker for scope with script ('OneSignalSDKWorker.js.php'): The script has an unsupported MIME type ('text/html')
Other browsers appear to be unaffected (tested with Firefox/Edge/Opera)
Steps to Reproduce Issue:
View any page under latest Chrome/Brave browser and error is thrown.
Anything else:
Noticed this issue after updating server from PHP 7.2 -> PHP 7.4 but not certain if that has anything to do with this.
UPDATE: Just wanted to follow up with this issue as I found it relates to the Web Shields enabled in the Brave browser by default which prevent the OneSignal initialization from occurring.
Description: Latest release of Chrome/Brave Browser [80.0.3987.132 (Official Build) (64-bit)] is getting the following error in the console and failing to load OneSignal:
ERROR: Uncaught (in promise) DOMException: Failed to update a ServiceWorker for scope with script ('OneSignalSDKWorker.js.php'): The script has an unsupported MIME type ('text/html')
Other browsers appear to be unaffected (tested with Firefox/Edge/Opera)
Steps to Reproduce Issue: View any page under latest Chrome/Brave browser and error is thrown.
Anything else:
Noticed this issue after updating server from PHP 7.2 -> PHP 7.4 but not certain if that has anything to do with this.
UPDATE: Just wanted to follow up with this issue as I found it relates to the Web Shields enabled in the Brave browser by default which prevent the OneSignal initialization from occurring.