Repository navigation
Replies: 1 comment 1 reply
|
Can you please write English? It would make it easier to help you. |
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
As an idea, we could introduce a variable to custom-name the cookie - for example, changing XSRF-TOKEN to XSRF-TOKEN-SITE-A.
I decided to try extending the class to attach internal cookies directly to the domain itself to avoid token conflicts.
For now, the only available workaround to resolve this situation is to use class inheritance/extending.
and then override it in AppServiceProvider
If you are using Sanctum, add it to the middleware.
Also, I defined it in the
config/session.phpfile.and set it to null in .env to ensure proper cookie behavior.
In the end, it turns out something like this:
_idperseyJpdiI6InVneUFrZmh2RHBZMjBsdWV1Q....siteA.localhost_eduapiperseyJpdiI6InVneUFrZmh2RHBZMjBsdWV1Q....siteB.localhostsso_logged_intrue.siteA.localhostXSRF-TOKENeyJpdiI6ImFBK1FybWZ4cE8ycVhFRWowM...id.siteA.localhostAll reactions