Hacker News new | ask | show | jobs
Ask HN: Why Facebook API responses have `for (;;);` at the start of the JSON
1 points by monkhood 872 days ago
An example API response:

`for (;;);{"payload":{"keys":[]}}`

1 comments

I suspect it’s designed to mitigate XSSI, Angular’s got one of the easiest to digest explanations[1].

1. https://angular.io/guide/security#cross-site-script-inclusio...