Hi everyone, I was toying with the idea of writing an open source client for Lemmy in React Native.

However, using lemmy-js-client, I’m getting CORS issue when trying to hit the APIs for lemmy.world (and also lemmy.ml) from the browser.

I could write a proxy server or a full backend, but that feels contrary to the fediverse philosophy of not being dependant on one instance etc. Not to mention users would have to trust me, some random person, with their logins / passwords for Lemmy.

Is there a way we can have CORS enabled from * for the APIs of lemmy.world?

  • saucyloggins@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Wouldn’t the real process here to just make your own instance with a different front end? Either that or make it an electron app etc.

    There’s a lot of security issues by disabling CORS.