How to handle referer with AJAX requests

I have a HTML page to which I am redirected via an 302 error code.

This Pages now makes some AJAX requests How can I make sure that all the AJAX request use the URL from the 302 redirection as their referer.

In the documentation I only found the hint referers are handled automatically but you can disable it. However I found no details on how the referer is set.
is is always the location of the last request carried out with exec ?
And what about the resources( function)? what i is theri referer?

In my situation how can I model my request and the 4 Ajax requests. I would think not using resources() since they are retrieved paralle to the requet and I want the Ajaxrequest in sequence with some delay between them