security_body

1.0.26 • Public • Published

Workflow library Security Body - JavaScript

ScreenShot

Install in Backend and Frontend

npm install security_body

NOTE : 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)

Package Sidebar

Install

npm i security_body

Weekly Downloads

9

Version

1.0.26

License

ISC

Unpacked Size

48.2 kB

Total Files

11

Last publish

Collaborators

  • oliversss1