I need to get the full domain in which the user sent the ajax request to my server, and it should be somewhat secure.
The 

```
$_SERVER['HTTP_REFERER']

```

Returns blank.
What function should I use?
Thanks in advance.