README
cabrel-hapi-json
A plugin for hapi that prefixes )]}',
to all JSON responses.
References
http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx http://docs.angularjs.org/api/ng.$http#jsonvulnerabilityprotection
Adds malformed JSON to JSON responses
<script type="module">
import cabrelHapiJson from 'https://cdn.skypack.dev/cabrel-hapi-json';
</script>
A plugin for hapi that prefixes )]}',
to all JSON responses.
http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx http://docs.angularjs.org/api/ng.$http#jsonvulnerabilityprotection