The function checks the HTTP headers for CMCD data first. If the
request has CMCD headers, validateCmcdHeaders validates them,
including shard placement. Otherwise, the function validates the CMCD
query parameter of the URL. A request with CMCD data in both the
headers and the CMCD query parameter is an error. The function still
validates the headers and returns their data.
Validates CMCD data from a request as a request-mode payload.
Accepts a Request object or an HttpRequest object.
The function checks the HTTP headers for CMCD data first. If the request has CMCD headers, validateCmcdHeaders validates them, including shard placement. Otherwise, the function validates the CMCD query parameter of the URL. A request with CMCD data in both the headers and the
CMCDquery parameter is an error. The function still validates the headers and returns their data.