Replies: 1 comment 4 replies
-
Anyone ever set up like this? I'm setting up now so I will share my results when done. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have questions about configuring laravel sanctum.
I updated the 'api' middleware in the kernel.php file like in the Sanctum docs: https://laravel.com/docs/7.x/sanctum#spa-configuration. But can I still hit 'web' routes with my vue.js app and maintain session/csrf?
If I use the 'api' routes with Sanctum, and I add my 'stateful' domain that my vue.js app will be running, can stateless endpoints still be called? We have other server-side apps that will hit the 'api' routes in addition to vue.js app and we don't want 'stateful' use of those. So, can we configure our 'api' routes to authenticate vue.js app in stateful manner and also have our other server apps hit those same 'api' routes with stateless auth?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions