Ngrok returns 405 Method Not Allowed while tunneling my localhost (Laravel)

1.4k views Asked by At

Currently working on SMS API retrieving Post request report after sending sms messages. After sending the report and try to callback the report through the API Middleware. After sms messages sent, Ngrok returns 405 Method Not Allowed.

Ngrok return

enter image description here

Callback Link Set

Api Middleware

Api Middleware

1

There are 1 answers

0
cednore On BEST ANSWER

Your route is defined as POST request. But your image shows GET request. Either change the request method as POST or change route definition as Route::get.