Skip to content

Commit

Permalink
Merge pull request #74 from PerimeterX/dev
Browse files Browse the repository at this point in the history
Version 1.6.1
  • Loading branch information
Johnny Tordgeman authored Jan 6, 2019
2 parents c993645 + 47ae37f commit 2d2eae1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.6.1] - 2018-01-06
### Fixed
- Proxy_url parameter in first-party captcha.js call

## [1.6.0] - 2018-01-02
### Added
- Added PXHD handling
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[PerimeterX](http://www.perimeterx.com) Shared base for NodeJS enforcers
=============================================================

> Latest stable version: [v1.6.0](https://www.npmjs.com/package/perimeterx-node-core)
> Latest stable version: [v1.6.1](https://www.npmjs.com/package/perimeterx-node-core)
This is a shared base implementation for PerimeterX Express enforcer and future NodeJS enforcers. For a fully functioning implementation example, see the [Node-Express enforcer](https://github.com/PerimeterX/perimeterx-node-express/) implementation.

Expand Down
4 changes: 2 additions & 2 deletions lib/pxproxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function getCaptcha(req, pxConfig, ip, reversePrefix, cb) {
url: `https://${pxConfig.CAPTCHA_HOST}${pxRequestUri}`,
headers: pxUtil.filterSensitiveHeaders(req.headers),
timeout: pxConfig.API_TIMEOUT_MS,
proxy: this.config.PROXY_URL,
proxy: pxConfig.PROXY_URL
};
callData.headers['host'] = pxConfig.CAPTCHA_HOST;
callData.headers[pxConfig.ENFORCER_TRUE_IP_HEADER] = ip;
Expand Down Expand Up @@ -82,7 +82,7 @@ function getClient(req, pxConfig, ip, cb) {
url: `https://${pxConfig.CLIENT_HOST}${clientRequestUri}`,
headers: pxUtil.filterSensitiveHeaders(req.headers),
timeout: pxConfig.API_TIMEOUT_MS,
proxy: pxConfig.PROXY_URL,
proxy: pxConfig.PROXY_URL
};
callData.headers['host'] = pxConfig.CLIENT_HOST;
callData.headers[pxConfig.ENFORCER_TRUE_IP_HEADER] = ip;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "perimeterx-node-core",
"version": "1.6.0",
"version": "1.6.1",
"description": "PerimeterX NodeJS shared core for various applications to monitor and block traffic according to PerimeterX risk score",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 2d2eae1

Please sign in to comment.