Punch nazis, trebuchet TERFs.

I am building Voyager, a client for lemmy!

  • 34 Posts
  • 420 Comments
Joined 1 year ago
cake
Cake day: April 15th, 2024

help-circle



  • I see what you’re saying, but I disagree it should be consistent: the user agent should accurately identify the software that’s requesting a resource.

    When Voyager just sends VoyagerApp without the browser stuff, it’s because the code that is making the http request actually bypasses the browser entirely, and is done natively with CapacitorHttp (helps to bypass CORS for perf and server misconfiguration).

    I could see an argument for changing it to CapacitorHttp/8.0 VoyagerApp/1.0 for API requests. But if voyager changed the header to include browser ua, that would actually be spoofing since the browser played no part of making or handling the request.

    i’m not sure why this was causing issues here though, especially with the login, as that should just be 100% api stuff and therefore use VoyagerApp/1.0 from the native app?

    Yes, that’s right, that is odd! 🤔


  • o you know if Voyager can send browser-like user agents when installed from App Store?

    Voyager actually used to haha. But added a static voyagerapp user agent because lemmy.ml started blocking without last year 🫠 can’t win unfortunately. Thanks for fixing.

    Btw, voyager PWA will always use browser ua, native app will use VoyagerApp/1.0 for api requests, AND <browser ua> VoyagerApp/1.0 for browser managed requests (like loading images).

    TLDR native app will always have VoyagerApp/1.0 somewhere in the string, PWA doesn’t touch the ua