npm install security_body
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 )
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
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)