回到顶部

阅读目录

Uncaught (in promise) PushError: permission request declined

Hi, it's not an code error.
Since new Chrome version Notification have to bieng use by "Secure Origins".
So, if you want use Notification http address muste be : localhost OR https://

I you want you cant also start chrome with cmd line with this line : -unsafely-treat-insecure-origin-as-secure="http://example.com"

You can try Notification via native Html5 : new Notification("hello")

Have a nice day.

More info here : https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins

 

push.min.js 报错:Uncaught (in promise) PushError: permission request declined

解决方法:使用 https 开头的 url 或者实用 原生 html5


^_^
请喝咖啡 ×

文章部分资料可能来源于网络,如有侵权请告知删除。谢谢!

前一篇: nginx: [emerg] host not found in upstream "cdn.xieboke.net" in /usr/local/nginx/conf/vhost/joyo.ink.conf:38
下一篇: CentOS7 安装 NodeJS