HTTP 405 Method Not Allowed — why does my request use the wrong method?

The request reached a target that does not support the HTTP method used. Start with the method shown in Network. It might be a POST sent to a GET route, or an OPTIONS request sent by the browser before the application request.
An origin server returning 405 must send Allow with the methods supported for that resource. Compare it with the method in Network. If OPTIONS failed, inspect the preflight route as well. Access-Control-Allow-Methods is a separate browser permission.
curl -i -X OPTIONS https://api.example.com/items
A standalone OPTIONS request can help you inspect the route before rerunning the browser action. Repeat the original browser action after fixing it. A successful preflight should allow the intended application request to appear, where you can verify its method and response separately.
Identify whether the 405 belongs to the application request or its OPTIONS preflight and check the method mapping at that layer.