diff --git a/lib/middleware/csp.js b/lib/middleware/csp.js
index <HASH>..<HASH> 100644
--- a/lib/middleware/csp.js
+++ b/lib/middleware/csp.js
@@ -123,3 +123,6 @@ module.exports.toJSON = function () {
     return JSON.stringify(csp);
 };
 
+module.exports.toJS = function () {
+    return csp;
+};
return raw object instead of stringified version which toJSON() does