Module aws_lambda_powertools.event_handler.util

Functions

def extract_origin_header(resolver_headers: Dict[str, Any])

Extracts the 'origin' or 'Origin' header from the provided resolver headers.

The 'origin' or 'Origin' header can be either a single header or a multi-header.

Parameters

resolver_headers : Dict
A dictionary containing the headers.

Returns

Optional[str]
The value(s) of the origin header or None.