Does not work with `csrf` enabled
Closed this issue · 4 comments
Barbapapazes commented
Package version
^0.2.3
Describe the bug
Once you enabled the shield.csrf
protection, client is unable to subscribe to the server.
Reproduction repo
No response
Barbapapazes commented
could solve my issue: adonisjs/transmit-client#2
will try
RomainLanz commented
Have you activated the enableXsrfCookie
option in config/shield.ts
?
Barbapapazes commented
could solve my issue: adonisjs/transmit-client#2
will try
works fine!
Barbapapazes commented
Have you activated the
enableXsrfCookie
option inconfig/shield.ts
?
Yes, after reading the code source of tansmit-client and now, everything is ok!