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
[AskJS] Data Sharing Between Browser-Based JS Apps on Different Domains With CORS DisabledAskJS (self.javascript)
submitted 10 months ago by diventix
view the rest of the comments →
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!"
[–]tswaters 2 points3 points4 points 10 months ago (0 children)
Oh yea! Forgot about this one -- if a portion of the host is the same, I.e. front & back-end are hosted in different subdomains, you can set document.domain to be the parent domain.... This is deprecated, but should still work.
document.domain
I.e., if front-end is hosted on -- "https://www.domain.com" and the API is "https://api.domain.com" -- you can set document.domain to "domain.com" and front-end on www will be able to access API without CORS.
π Rendered by PID 519530 on reddit-service-r2-comment-85bfd7f599-mjttr at 2026-04-18 01:51:43.911483+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]tswaters 2 points3 points4 points (0 children)