This commit is contained in:
Gene Hazan 2017-04-21 14:57:38 -07:00
Родитель f615c79b9b
Коммит ea683d8161
2 изменённых файлов: 8 добавлений и 1 удалений

1
app.js
Просмотреть файл

@ -17,6 +17,7 @@ const mode = config.get('CRAWLER_MODE') || '';
const service = CrawlerFactory.createService(mode);
const app = express();
app.disable('x-powered-by');
app.use(logger('dev'));
app.use(sendHelper());

Просмотреть файл

@ -38,13 +38,19 @@
<!-- 'bin' directory has no special meaning in node.js and apps can be placed in it -->
<security>
<requestFiltering>
<requestFiltering removeServerHeader="true">
<hiddenSegments>
<remove segment="bin"/>
</hiddenSegments>
</requestFiltering>
</security>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
<!-- Make sure error responses are left untouched -->
<httpErrors existingResponse="PassThrough" />