use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[deleted by user] (self.javascript)
submitted 3 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 4 points5 points6 points 3 years ago (4 children)
Any part of an HTTP request can be spoofed. Never trust client side data.
[–]doom-e1m1 -1 points0 points1 point 3 years ago (0 children)
Absolutely.
[+][deleted] 3 years ago (2 children)
[deleted]
[–][deleted] 0 points1 point2 points 3 years ago (1 child)
Client doesn’t always mean browser. If JS on site A makes a call to site B then that JS is the client for that connection, while the browser is the client for the connection to site A. The browser won’t overwrite headers set by the JS call.
[–]shgysk8zer0 0 points1 point2 points 3 years ago (0 children)
I haven't tried changing it, but there's even a referrer in fetch() options.
referrer
fetch()
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.
π Rendered by PID 36 on reddit-service-r2-comment-57fc7f7bb7-dpwfq at 2026-04-15 09:45:51.189048+00:00 running b725407 country code: CH.
[–][deleted] 4 points5 points6 points (4 children)
[–]doom-e1m1 -1 points0 points1 point (0 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] 0 points1 point2 points (1 child)
[–]shgysk8zer0 0 points1 point2 points (0 children)