security_body
v1.0.26
Published
Security middleware to encrypt and decrypt body from REQUEST and RESPONSE
Downloads
44
Maintainers
Readme
Workflow library Security Body - JavaScript

Install in Backend and Frontend
npm install security_bodyNOTE : Backend usage
Import library inside app.js or where you are config your middlewares
const security_body_midd = require('security_body')Add the next line after all middlewares to prevent some issues
app.use( security_body_midd.security_backend_midd.security_body_midd )NOTE : Frontend usage
Import library, inside service.js or where you are config your services with axios
import security_body from 'security_body'Add the next line before function getUrl
Considerations
Careful, if your project have more than one interceptor, the next line must be placed on bottom of them.
NOTE: If your environment has a lot services with the same host, you must add url and uri in config axios then otherwise library try to verify with request domain name.
security_body.security_frontend_midd.security_body_midd(axios)