Validates CMCD data from a request as a request-mode payload.
Accepts a
Request
object or an @svta/cml-utils#HttpRequest | HttpRequest object.
The function checks for CMCD data in the HTTP headers first. If CMCD
headers are found, validation includes shard-placement checks via
validateCmcdHeaders. Otherwise, the CMCD query parameter is
extracted from the URL and validated.
Validates CMCD data from a request as a request-mode payload.
Accepts a Request object or an @svta/cml-utils#HttpRequest | HttpRequest object.
The function checks for CMCD data in the HTTP headers first. If CMCD headers are found, validation includes shard-placement checks via validateCmcdHeaders. Otherwise, the CMCD query parameter is extracted from the URL and validated.