0👍
I found the solution to this one
I needed to add cors to the middleware on the route
Route::group(['middleware' => ['jwt.verify','cors']], function() {
Route::get('user', 'UserController@getAuthenticatedUser');
Route::get('closed', 'DataController@closed');
});
Source:stackexchange.com