I have Completely assigned the Passport REST API and i get token and tested on PostMan 
and it retrieve the data with this Auth
this is normal js html with laravel blade view (NOT VUE.JS)
<script>
$.ajax({
method: 'POST',
dataType: 'json',
url: "**********/api/User/GetPost",
headers: {
'Authorization':'Bearer Tokenblablabla',
'Content-Type':'application/json'
},
data: null,
success: function(data){
console.log('succes: '+data);
}
});
this is the controller function
public function GetPosts(Request $request){
$data3="Test"
return response()->json([
'Success'=> true,
'Message'=>'8',
'Data' => $data3,
], 200);
}
this is api.php // this will return a json with posts details
Route::group(['middleware'=>'auth:api'],function(){
Route::post('/GetPosts','Wall\PostsController@GetPosts');
});
this is web.php
Route::get('/GetPost', function () {
return view('getpostview');
})->middleware('auth:api');
i get confused i cannot send Auth beside i cannt retrieve the json from API iam 3 days STUCK in this problem what iam need to connect the normal laravel blade to another laravel passport REST API