egg-xss
Egg's XSS
Install
$ npm i egg-xss --save
Usage
// {app_root}/config/plugin.jsexportsxss = enable: true package: "egg-xss";
Configuration
// {app_root}/config/config.default.js'use strict'; configxss = enable: true match: '/test' '/login' ;
see config/config.default.js for more detail.
Example
// app/router.js"use strict"; module { app;};
// app/controller/test.js"use strict"; module { Controller { console; thisctxbody = thisctxquery; } return SuccessController;};
Questions & Suggestions
Please open an issue here.