Skip to content

Commit

Permalink
Remove referer validation for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Aguero committed Aug 1, 2019
1 parent 02b918e commit 59edaa1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,6 @@ if (config.env === 'production') {
)
}

if (config.env === 'staging') {
app.use(
hostValidation({
hosts: ['livepeer-alerts-backend-stag.herokuapp.com'],
referers: [
'https://livepeer-alerts-frontend-stag.herokuapp.com',
/^https:\/\/livepeer-alerts-frontend-stag\.herokuapp\.com\/.*/
]
})
)
}

// enable detailed API logging in dev env
if (config.env === 'development') {
expressWinston.requestWhitelist.push('body')
Expand Down

0 comments on commit 59edaa1

Please sign in to comment.