feadro / play2-csp

Content Security Policy for Play! Framework 2
2 stars 1 forks source link

Won't parse chrome csp reports #1

Open bachi76 opened 9 years ago

bachi76 commented 9 years ago

Just a guess: Your code won't parse chrome's csp reports, while FF works. Because chrome uses application/csp-report as mime type, not application/json - and then Play refuses to parse the body as json. Simple solution (after 2h debugging) - use @BodyParser.Of(BodyParser.TolerantJson.class) ...

franzgranlund commented 9 years ago

Thanks, I will look into this!