Welcome Guest, Not a member yet? Register   Sign In
How to handle SecurityException #403 globally?
#1

Hello folks,
When I restored browser pages from the last session, I noticed my CI4 app throwing "CodeIgniter\Security\Exceptions\SecurityException #403 The action you requested is not allowed." taking place at the urlĀ 'localhost:8080/login/magic-link'. I know this occurs when a csrf token expired, but I'm looking for a nicer way to output to the browser like showing a flash message or redirecting the user to the last form they were on.
How and where can one capture this in a try catch block to begin with?
Reply


Messages In This Thread
How to handle SecurityException #403 globally? - by fcoder - 10-28-2024, 12:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB