Login Issues with Kirby Panel from Certain Networks (e.g. Library Wi-Fi)

Hi everyone, I’m working on a client website using Kirby CMS. The site is:

My client keeps having trouble logging into the panel when using public networks, like at the Staatsbibliothek. From home, it works fine. Here’s what she wrote:

“I’m at Staatsbibliothek and again I can’t login. Does this bug have to do with logging in from networks other than my home Wi-Fi?”

When trying to log in, she gets a 404 error for /api/auth/login. Here’s the error from the browser console:


{
  "status": "error",
  "message": "No route found for path: \"auth\\/login\" and request method: \"GET\"",
  "code": 404,
  "exception": "Exception",
  "key": null,
  "file": ..\/..\/..\/..\/..\/..\/..\/..\/..\/mnt\/web109\/d0\/99\/53593999\/htdocs\/Http\/Router.php",
  "line": 185,
  "details": [],
  "route": null
}

This issue doesn’t occur when logging in from her home Wi-Fi, which suggests the problem may be related to network restrictions maybe ?

My Questions:

  1. Has anyone else run into similar issues with public networks and Kirby’s panel?
  2. Would updating to the latest Kirby version help here?
  3. Is there anything I can do to make sure the panel is always accessible, regardless of the network?

Thanks in advance for your help!

Sophia

This specific issue does not ring a bell. But it could well be that the public network of the Staatsbibliothek uses a proxy server that modifies the request.

Which is weird though as the web server of your site redirects unencrypted HTTP requests to HTTPS. Those requests should not be able to be modified by a proxy unless your client has installed a certificate to their device(s) in order to use the Staatsbibliothek WiFi (which is an immense security risk as it will make all network traffic visible to the network operators).

To answer your other questions: We recommend to always keep your Kirby installations up-to-date, but I don’t think that this will help to fix this specific issue. I also don’t think you can circumvent the issue on the server as the request is already received incorrectly (as GET instead of as POST as sent by the Panel frontend).

1 Like

Hi Lukas,

It’s helpful to know that this may be related to the public network. I’ll communicate this to my client and also make sure to upgrade the Kirby version.

Thanks again for your support!