Stripe webhooks failing due to InvoiceNinja returning 405 - Method Not Allowed

Webhooks from Stripe to InvoiceNinja like payment_intent.succeeded and charge.succeeded are failing
In the Stripe webhooks dashboard it shows it’s due to HTTP status code 405 (Method Not Allowed)
InvoiceNinja v5.7.5

@david do you have any suggestions?