Answer the question
In order to leave comments, you need to log in
How to get a request from another server without a 405 error?
Hello!
I'm using the latest version of Laravel -8.
In web.php I registered the address to which the server will refer:
Route::get('/callback', [MyController::class,'callback'])->name('callback');
public function __construct()
{
$this->middleware('auth', ['except' => ['callback',...]]);
}
Answer the question
In order to leave comments, you need to log in
In general, as always, the problem is in the fucking Laravel cache, the team:
php artisan route:cache
removed the error and everything worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question