this post was submitted on 07 Jan 2024
697 points (93.6% liked)
Technology
59708 readers
1799 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I am getting a blank page.
In the console:
Access to XMLHttpRequest at 'https://www.reddit.com/r/all/.json?limit=20' from origin 'https://rdx.overdevs.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Tested with both ungoogled-chromium and firefox without cookies
There's an addon for Firefox to disable CORS for certain sites. Need to use that.
Same issue in safari iOS. I don’t want to use an extension for that.
is ok to have workarounds, but i am pretty sure this can be implemented on the app side too. Thanks for the hint tho, at least if i need it i can use it
I've also made an application for something like this. The only way to change this on the app side is to route all Reddit calls through the app server itself instead of doing it on the browser, essentially making the app a complete proxy. The only thing it does is increase traffic requirements and require everyone to host their own instance.
An addon to disable CORS just for this site is really easy and imo the most sensible approach.
Same for me. Won't use with a workaround, this should be fixed
I would love to fix this, most people who have this issue are using enhanced privacy/tracking protection settings that block the reddit url or have VPN/proxies turned on. Unfortunately reddit blocks that traffic in the guise of preventing spam/scrapping.
Now I can put up a server and bypass the traffic through my VPS and make the reddit content available to rdx(which libreddit used to do before reddit tightened their API). But soon enough they will ban my server, I will have to buy another and this keeps going on and on. That will be too much effort for too little gain.
However if there are already some servers that make the reddit JSON available through some proxy, I am all for adding it to the app. However I couldn't find anything that will even last a week.
Hey thank you for the response!
Ahh that makes perfect sense, completely understand. Maybe making and linking a short guide at the bottom of the page would be helpful? Something to say "Not Seeing Anything?" And then it links to like a paragraph or two explaining why.
Just a thought for not so bright users like myself :s
Done!