hi there, I'm having a very strange issue with my spring boot 2 test project: when I perform a GET request it works fine, but on POST it always throws a 401 with plain text
CSRF Token has been associated to this client
... any ideas?
stackoverflow 1
l
lex
04/20/2018, 4:17 AM
turn off csrf or post token with body
p
Pere Casafont
04/20/2018, 8:52 AM
it's just a plain POST request without any authentication or header...
p
poohbar
04/20/2018, 3:56 PM
do you use Spring Security?
p
Pere Casafont
04/20/2018, 6:35 PM
yes, but even after I disabled it (including gradle dependency removal) it still happens
Pere Casafont
04/20/2018, 7:58 PM
the issue is that I didn't have disabled csrf in the security config... why is it enabled by default in 2018?