Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Commit 72f7dd2

Browse files
authored
Merge pull request #223 from PerimeterX/dev
Dev
2 parents ecfcd32 + b2103a5 commit 72f7dd2

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [3.2.2] - 2022-03-09
9+
10+
### Added
11+
12+
- Send PX cookie over risk_api on sensitive routes
13+
814
## [3.2.1] - 2022-01-31
915

1016
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[PerimeterX](http://www.perimeterx.com) Shared base for NodeJS enforcers
77
=============================================================
88

9-
> Latest stable version: [v3.2.1](https://www.npmjs.com/package/perimeterx-node-core)
9+
> Latest stable version: [v3.2.2](https://www.npmjs.com/package/perimeterx-node-core)
1010
1111
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.
1212

lib/pxapi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function buildRequestData(ctx, config) {
8181
data.additional.px_orig_cookie = ctx.getCookie(); //No need strigify, already a string
8282
}
8383

84-
if (ctx.s2sCallReason === 'cookie_expired' || ctx.s2sCallReason === 'cookie_validation_failed') {
84+
if (ctx.s2sCallReason === 'cookie_expired' || ctx.s2sCallReason === 'cookie_validation_failed' || ctx.s2sCallReason === 'sensitive_route') {
8585
data.additional.px_cookie = JSON.stringify(ctx.decodedCookie);
8686
}
8787

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "perimeterx-node-core",
3-
"version": "3.2.1",
3+
"version": "3.2.2",
44
"description": "PerimeterX NodeJS shared core for various applications to monitor and block traffic according to PerimeterX risk score",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)