For AI agents: visit https://docs.datadome.co/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
- Platform Integrations: Server-side
- Node.js
Node.js Changelog
- Improve the core logic of our DataDome integration to support future capabilities
- Increase length limit from 128 to 512 characters for DataDome cookie to support future capabilities
- Use request copy in DataDome middleware to prevent
req.url mutation
- Add handlers optional parameter to allow overriding fields in payloads sent to the Bot Protect API
- Exclude empty fields from payloads sent to the Bot Protect API
- Add CookiesList to payloads sent to Protection API
- Add
enableGraphQLSupport option to enable GraphQL support
- Collect fetch metadata headers
- Raise runtime error when using invalid constructor arguments
- Split @datadome/node-module into two separate packages:
- Rename
uriRegex option to urlPatternInclusion
- Rename
uriRegexExclusion option to urlPatternExclusion
- Remove
port, shouldUseSsl and path options from DatadomeClient
- Move and rename
endpoint parameter from being the second argument in DataDomeClient class to being part of the options object, now called endpointHost
- Rename
authCallback method to handleRequest
- Add
middleware method to return a request handler
- Rename
auth method to handleRequest
- Change the
handleRequest signature to return a promise
- Fix the JSDoc and the TypeScript definition file
- Update default export of DatadomeClient to support strict ES
- Use
req.originalUrl to get the request URL for express integration
- Add a new
params argument to both auth and authCallback methods for enhanced customization
- Fixed potential double execution of callbacks
- Truncated request headers exceeding size limits
- Fixed bug for undefined
x-datadome-request-headers
- Added access to
x-datadome-request-headers in block and auth callback
- Update user agent client hint request header
- Fix vulnerabilities from dependencies
- Fix bug with logger scope
- Introduced support for custom logger
- Added typescript types
- Added collection of client hints
- Added support of header
X-DataDome-ClientID
- Introduced support of
req.baseUrl
- Changed default exclusion regex
- Fixed 4xx status codes handling
- Added support of headers: Content-Type, From, Via, X-Real-IP and True-Client-IP
- Fixed empty
ServerHostname
- Introduced callback based way to use a module
- Override all headers except of Set-Cookie