You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cljs-ajax, I've got a feature that allows you to specify that you're expecting a JSON response to be prefixed with (for instance) while(1);, like some Google APIs do. Would you be interested in a PR that added such a feature into the opts in Cheshire?
The text was updated successfully, but these errors were encountered:
@JulianBirch I'm afraid I don't quite understand what this does, can you give me an example input that you are talking about? What does this have to do with CSS?
JulianBirch
changed the title
Handling anti-CSS prefixes
Handling anti-XSS prefixes
Sep 14, 2015
Really should have written XSS, sorry (edited the heading). An example is something like while(1);{"a" "b"}. Typically this is coming back as a response to a GET. So you need to strip the prefix off to get a useful result. (Namely `{"a" "b"})
In
cljs-ajax
, I've got a feature that allows you to specify that you're expecting a JSON response to be prefixed with (for instance)while(1);
, like some Google APIs do. Would you be interested in a PR that added such a feature into the opts in Cheshire?The text was updated successfully, but these errors were encountered: