Fix: Cannot read properties of undefined (reading 'status')
Solution: to fix this error, the route in my front end was different then in my api.php file.
Problem:
FrontEnd axios:
Backend: api.php
Do you see the difference? the difference is `/logs_user_tasks/` and '/logs_user_tasks'
Incase you can't see it, its the extra backslash at the end
In the console, i kept getting this error:
Access to XMLHttpRequest at 'https://example.domain.com/api/logs_user_tasks/' from origin 'https://127.0.0.1' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.