this post was submitted on 07 Jan 2024
602 points (93.6% liked)
Technology
59390 readers
2519 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.
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.