News for hackers. Stuff that matters.
Re:The Performance Cost of CORS Requests on Single-Page Appl... by pas on Sunday September 02, 2018 @01:38PM (#17897803)
Why do you need JWT and CSRF at the same time? If you have the JWT you can use that as the CSRF token.
Re:The Performance Cost of CORS Requests on Single-Page Appl... by superasn on Sunday September 02, 2018 @02:07PM (#17897911)
I don't think that you can. The CSRF token must either be in the headers or the meta tags. Storing it inside the JWT cookie would defeat the purpose (unless you are not using cookies at all in which case you don't have to).
Re:The Performance Cost of CORS Requests on Single-Page Appl... by bosyr on Sunday September 02, 2018 @02:33PM (#17898013)
JWT don’t have to be in a cookie. It may very well be a bearer token in the Authorization header as well. I would assume that is the most common use of a JWT, but that is just an assumption.