Skip to content

Commit

Permalink
Merge pull request ether#630 from jhollinger/develop
Browse files Browse the repository at this point in the history
Don't require http auth for static paths
  • Loading branch information
JohnMcLear committed Apr 13, 2012
2 parents 3dd24bd + 362ef45 commit cba2c1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/node/hooks/express/webaccess.js
Expand Up @@ -28,6 +28,11 @@ exports.basicAuth = function (req, res, next) {
return next();
}
}
// Do not require auth for static paths...this could be a bit brittle
else if (req.path.match(/^\/(static|javascripts|pluginfw)/)) {
return next();
}


// Otherwise return Auth required Headers, delayed for 1 second, if auth failed.
res.header('WWW-Authenticate', 'Basic realm="Protected Area"');
Expand Down

0 comments on commit cba2c1f

Please sign in to comment.