aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/createOriginMiddleware.js
blob: e1e097cc4d056f533d1e5d74ceb080ccfb51f4da (plain) (blame)
1
2
3
4
5
6
7
8
9
// append dapp origin domain to request
module.exports = createOriginMiddleware

function createOriginMiddleware({ origin }) {
  return function originMiddleware (req, res, next, end) {
    req.origin = origin
    next()
  }
}