if(event=="play"){ $.ajax({ type: "post", url: "video.php", data: {id: '.$kp.', dt: document.referrer} }); yaCounter51365005.reachGoal("playerjs_play"); } } document.referrer from another domain with https - I get an empty value, this is understandable, how can I get the value (domain) in ajax differently? $ _SERVER ['HTTP_REFERER'] does not quite work as it should, only gives its domain.
I want to get data from which "domain" the visitor is watching the iframe.
I have in all the files
header('Access-Control-Allow-Origin: *');