1.0.2 • Published 5 years ago

domain-fix v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

domain-fix

To strict your api servers for your desired domains

To install

npm install domain-fix --save

//For a single domain
const domainFix = require('domain-fix');

let domainCheck = domainFix(domainName,request); // domainName should be a string; request is the request parameter coming from your UI
// The module will give you true/false response
//For multiple domain
const domainFix = require('domain-fix');

let domainCheck = domainFix(domainList,request); // domainList should be an array of domains you want to allow; request is the request parameter coming from your UI
// The module will give you true/false response

Author : Tanumay Ghosh