Laravel +护照:面临问题401未经授权

I have created a Laravel Application and included passport for authentication. The application is working fine on my local system.

But when I have deployed the application on the shared hosting platform I am facing issue where I am getting error 401 Unauthorised on the request I am passing to the server.

Though, the login API is working fine and generating access token. I am facing difficulty to find out the reason for it.

Could anyone help me out to resolve this issue?

Attaching image the way I am sending the request: enter image description here

Did you send access_token in your headers like this:

 $.ajaxSetup({
    headers: {
    'Authorization': "Bearer your_access_token",
   }
});