We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 825a510 + 13f24ed commit e297527Copy full SHA for e297527
src/api-data-gov-filter.js
@@ -3,16 +3,13 @@ const config = require('./config');
3
const apiDataGovFilter = (req, res, next) => {
4
if (!config.api_data_gov_secret || req.path === '/') {
5
return next();
6
- }
7
- else if (process.env.NODE_ENV !== 'development') {
8
- if (req.headers['api-data-gov-secret'] !== config.api_data_gov_secret) {
+ } else if (req.headers['api-data-gov-secret'] !== config.api_data_gov_secret) {
9
res.status(403);
10
return res.json({
11
message: 'Unauthorized. See https://analytics.usa.gov/developer',
12
status: 403
13
});
14
}
15
-}
16
17
};
18
0 commit comments