this post was submitted on 06 Jul 2023
14 points (100.0% liked)

wefwef

4216 readers
1 users here now

wefwef is now Voyager! Subscribe to !voyagerapp@lemmy.world.

founded 1 year ago
MODERATORS
 

If I interact with a Lemmy post via Wefwef, will it go to wefwef.app domain first and then to Lemmy or will it pass the request directly from my phone to the Lemmy Instance (s)?

TIA!

top 5 comments
sorted by: hot top controversial new old
[–] rbits@lemmy.fmhy.ml 5 points 1 year ago

Not currently, but that will be fixed soon. See https://lemmy.fmhy.ml/post/648998

[–] freamon@feddit.nl 4 points 1 year ago (1 children)

It'll be direct to the instances, if only because they wouldn't want the data load.

[–] dividuum@feddit.de 9 points 1 year ago (1 children)

Not true in all cases. Due to how the web security model works, unlike a native app, a web app running on wefwef.app cannot randomly access other domains. This includes contacting lemmy instances. This is the reason why they implement a proxy (see code here). From what I understand newer lemmy server versions do (or will soon) implement CORS which is a mechanism that obsoletes the requirement for a proxy and allows direct communication between web app and instance.

[–] freamon@feddit.nl 6 points 1 year ago (1 children)

Interesting, thanks. I gave an instinctual answer rather than an informed one - sorry OP!

[–] iasad12@lemmy.world 3 points 1 year ago

No problem, fella. I was worried about us overwhelming the servers of different Lemmy Instances. But proxy is still good. For instance, if I live in a country which is geographically distanced from the server, it will work fine regardless of my geographical distance.