Skip to content

Sanctum APi #625

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

Open
ArifandiHartono opened this issue Mar 22, 2025 · 1 comment
Open

Sanctum APi #625

ArifandiHartono opened this issue Mar 22, 2025 · 1 comment

Comments

@ArifandiHartono
Copy link

Why when i use sanctum api it will automatically redirect to login i want to make it redirect to 401 unauthorized but cant in the newest version. its work well in the older version is anyone have meet same problems?

@mikaeldiok
Copy link

its from the client side, the request should be set to accept application/json in order to show the 401 unauthorized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants