Baseurl based client or server side #527
-
|
Any way to have dynamic baseUrl based on client or server side request? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
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 I would recommend using a name for the docker container in a way you have your domain set, for example:
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 |
Beta Was this translation helpful? Give feedback.
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:
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