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

Commit e93cea9

Browse files
bugfixed
1 parent daaa21a commit e93cea9

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ 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.10.0] - 2023-03-28
8+
9+
## [3.10.1] - 2023-03-29
10+
11+
### Fixed
12+
- Bug fixed in pxCookieValidator which fails on invalid variable name.
13+
14+
## [3.10.0] - 2023-03-28 (removed)
915

1016
### Added
1117
- Support for handling graphQL requests with empty query field

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.10.0](https://www.npmjs.com/package/perimeterx-node-core)
9+
> Latest stable version: [v3.10.1](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/pxcookie.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function evalCookie(ctx, config) {
8181
return ScoreEvaluateAction.COOKIE_INVALID;
8282
}
8383

84-
if (ctx.sensitiveRoute()) {
84+
if (ctx.sensitiveRequest()) {
8585
config.logger.debug(`Sensitive route match, sending Risk API. path: ${ctx.uri}`);
8686
ctx.s2sCallReason = 'sensitive_route';
8787
return ScoreEvaluateAction.SENSITIVE_ROUTE;

lib/pxtesthandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function customRequestHandler(ctx, config, req, res) {
1717
headers: ctx.headers,
1818
user_agent: ctx.userAgent,
1919
is_made_s2s_api_call: ctx.hasMadeServerCall || false,
20-
sensitive_route: ctx.sensitiveRoute,
20+
sensitive_route: ctx.sensitiveRequest(),
2121
sensitive_routes_list: config.SENSITIVE_ROUTES,
2222
whitelist_routes: config.WHITELIST_ROUTES,
2323
decoded_px_cookie: ctx.decodedCookie,

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.10.0",
3+
"version": "3.10.1",
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)