im trying to authenticate a request sent from the front end from another domain i tried to set the 'Cookie' header with the cookie value but it was blocked by the browser ,so i did the following
headers: {
'Authorization': 'Bearer ' + sessionStorage.getItem('Cookie'),
}
my plan now is to create a middleware and im familiar with the method
$request->bearerToken()
but im not sure how to use the cookie i got to authenticate the request, im using laravel 11
sessionStorage?document.cookiegives only the cookies associated with the current domain.