MCPcopy Index your code
hub / github.com/angular-app/angular-app / protectJSON.js

File protectJSON.js

server/lib/protectJSON.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// JSON vulnerability protection
2// we prepend the data with ")]},\n", which will be stripped by $http in AngularJS
3module.exports = function(req, res, next) {
4 var _send = res.send;

Callers

nothing calls this directly

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected