-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
401 Unauthorized #3
Comments
Ah, alright, if I run site with the php artisan serve, then everything is ok, but with my Apache server and virtual domain there is a 401 error, how can I fix this? |
hello , thank you for opening this issue . the problrem you are facing is a consequence of an unmatch in the url happening between the frontend and the backend allowed stateful domains , the vue js front end will post to FIX : add the url manually to your config/sanctum.php with the port number
|
Thank you very much for the quick response and detailed explanation! After adding the URL to the sanctum settings, everything started working as expected. |
After successful registration and login, every route with middleware auth:sanctum returns a status code: 401 Unauthorized, what could be the problem?
The text was updated successfully, but these errors were encountered: