Laravel auth CORS issue
问题 I'm having the same issue with Laravel authentication and CORS as this thread: Auth::user() returns null with CORS requests Although, my files won't be hosted on the same domain as they will be used within a Cordova smartphone application. Does anyone have any ideas how to solve this, and still use Laravels standard Auth functionality? Many thanks! 回答1: Solved this by first adding the following headers to App::before function in routes: header('Access-Control-Allow-Origin: *'); header('Access