Google chrome Firefox推送通知在localhost中工作,但不是从我的网站(https://example.com)

Google chrome Firefox推送通知在localhost中工作,但不是从我的网站(https://example.com),google-chrome,firefox,push-notification,server,web-notifications,Google Chrome,Firefox,Push Notification,Server,Web Notifications,我正在运行下面的,它在我的本地主机上运行得很好,但是当我从我的站点(https://**.co)运行相同的代码时,通知不起作用。我没有收到任何消息 下面是我的示例代码 <?php $url = "https://updates.push.services.mozilla.com/wpush/v1/gAAAAABX8iWjb-FGul8QzsWYkzgjMp8uRhKXaEtf3nr9CCy7lY1gLpkNHGwLUFKPa0iZ_bXND0meKat_BBEiN46EAhjygD9h_q

我正在运行下面的,它在我的本地主机上运行得很好,但是当我从我的站点(https://**.co)运行相同的代码时,通知不起作用。我没有收到任何消息

下面是我的示例代码

<?php
$url = "https://updates.push.services.mozilla.com/wpush/v1/gAAAAABX8iWjb-FGul8QzsWYkzgjMp8uRhKXaEtf3nr9CCy7lY1gLpkNHGwLUFKPa0iZ_bXND0meKat_BBEiN46EAhjygD9h_q0onLwFZr-AKSJBeSGmzgpk8OUvtDpPCrLZ2ZS_uSyl";

$ch = curl_init();  

curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('ttl: 60'));
curl_setopt($ch, CURLOPT_POST, true);

$output=curl_exec($ch);
curl_close($ch);
print_r($output);