'Redirected to login after refreshing page in nuxtjs and laravel sanctum
i have a problem with Nuxt SSR mode in production auth with Laravel sanctum
login success but when refresh any page, redirecting to login page and logout !!!
Solution 1:[1]
The problem was solved by adding the following code:
headers: { Referer: baseURL, }
in auth strategy > endpoints > user
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Keyvan Gholami |