adonisjs / transmit

A Server-Sent-Event module for AdonisJS
MIT License
71 stars 5 forks source link

Does not work with `csrf` enabled #9

Closed Barbapapazes closed 7 months ago

Barbapapazes commented 7 months ago

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 7 months ago

could solve my issue: https://github.com/adonisjs/transmit-client/issues/2

will try

RomainLanz commented 7 months ago

Have you activated the enableXsrfCookie option in config/shield.ts?

Barbapapazes commented 7 months ago

could solve my issue: adonisjs/transmit-client#2

will try

works fine!

Barbapapazes commented 7 months ago

Have you activated the enableXsrfCookie option in config/shield.ts?

Yes, after reading the code source of tansmit-client and now, everything is ok!