You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Awesome package, and i really love it.
When an IP is blocked it shows nicely the "blocked" view
However, sometimes I call the backend through axios and then I get the view back in the console. Any suggestions what the best way of communication to the user is with API calls
As far as I can see in the code I cannot change the response based on a api call or a http call
Suggestion
Maybe in the middleware.php determine if the call was an api and then use different config parameters to return
then on a blocked api call the frontend can determine the error and show a message to the user / or redirect with js
The text was updated successfully, but these errors were encountered:
Awesome package, and i really love it.
When an IP is blocked it shows nicely the "blocked" view
However, sometimes I call the backend through axios and then I get the view back in the console. Any suggestions what the best way of communication to the user is with API calls
As far as I can see in the code I cannot change the response based on a api call or a http call
Suggestion
Maybe in the middleware.php determine if the call was an api and then use different config parameters to return
then on a blocked api call the frontend can determine the error and show a message to the user / or redirect with js
The text was updated successfully, but these errors were encountered: