How to JS redirect with spoofed referrer

Hi,
I am trying to make a redirect with JS that will do same that PHP CURL options can do – set the referrer so that on the target page a referrer will be spoofed and not the actual url triggered the redirect.

Can anyone share ideas.
I am not strong …

Hi,
I am trying to make a redirect with JS that will do same that PHP CURL options can do – set the referrer so that on the target page a referrer will be spoofed and not the actual url triggered the redirect.

Can anyone share ideas.
I am not strong in JS so please describe in details

Thanks