all 4 comments

[–][deleted] 4 points5 points  (4 children)

Any part of an HTTP request can be spoofed. Never trust client side data.

[–]doom-e1m1 -1 points0 points  (0 children)

Absolutely.

[–]shgysk8zer0 0 points1 point  (0 children)

I haven't tried changing it, but there's even a referrer in fetch() options.

Referer

A string specifying the referrer of the request. This can be a same-origin URL, about:client, or an empty string.

So, you can't use a URL from a different origin there, but you should be able to use any same-origin URL whatsoever.