【发布时间】:2017-09-19 08:17:57
【问题描述】:
我将网站移至 Https,但 OneSignal 推送通知出现问题。我阅读了 OneSignal 的文档,但它对我没有帮助。该网站基于 Wordpress 并使用 OneSignal 插件。我在 Google 开发工具中收到下一个错误:
Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The path of the provided scope ('/') is not under the max scope allowed ('/wp-content/plugins/onesignal -free-web-push-notifications/sdk_files/')。调整范围,移动 Service Worker 脚本,或者使用 Service-Worker-Allowed HTTP 标头来允许范围。
有人知道它有什么问题吗?
【问题讨论】:
-
如果您对插件有任何疑问,您应该联系插件开发人员,因为他们最有能力了解问题并能够提供帮助。
标签: javascript php wordpress onesignal