Skip to content
Discussion options

You must be logged in to vote

Hey @Mantas-starkodas, it might break the CORS/CSRF validation because you will need to provide the same host/origin in the request (although it can be manually set in sanctum.origin). Also, Nuxt does not reload this config depending on the CSR/SSR mode.

I would recommend using a name for the docker container in a way you have your domain set, for example:

  • Docker container name: laravel.test (which can be used within the same docker network)
  • Domain name accessible from browser: laravel.test (which goes to localhost rather than the actual domain)

It's also mentioned in the docs here - https://sanctum.manchenkoff.me/advanced/troubleshooting#works-on-client-side-csr-but-not-on-server-side-ssr

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@manchenkoff
Comment options

@manchenkoff
Comment options

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