Skip to content
Discussion options

You must be logged in to vote

Hey @prpanto, I do not include Laravel docs to the module because they can get outdated very quickly 😄 Ideally, the configuration should be correct out of the box if you follow the official docs - Laravel Sanctum, or more specifically SPA Authentication. However, I cannot guarantee the same if you are using other kits or templates as I am not aware of their default config.

I add SESSION_DOMAIN=localhost

This is not needed for local development, moreover sometimes it breaks the stateful flow if your system translates it into hard "127.0.0.1" instead. You can drop it.

On the high-level, it should be:

  • update CORS config to include your frontend domain (allowed_origins, support_credentials)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by manchenkoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants