Welcome Guest, Not a member yet? Register   Sign In
CI4 Filter before method throw for page unauthorized
#4

And what about this code ?

$response = \Config\Services::response();
$response->setStatusCode(401);
$response->send();
die();

You send the response and you kill your script, so there is no body.
Reply


Messages In This Thread
RE: CI4 Filter before method throw for page unauthorized - by jean5769 - 04-10-2020, 05:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB