Extracts the bbc-origin and bbc-header headers by default for Next.js routes when the extractHeaders function is used
Code changes
Refactors the extractHeaders function to also return the bbc-origin and bbc-header headers by default, so that they don't need explicitly extracted for every route
Testing
List the steps used to test this PR.
Helpful Links
Add Links to useful resources related to this PR if applicable.
Related to https://jira.dev.bbc.co.uk/browse/WSTEAM1-1229
Overall changes
bbc-origin
andbbc-header
headers by default for Next.js routes when theextractHeaders
function is usedCode changes
extractHeaders
function to also return thebbc-origin
andbbc-header
headers by default, so that they don't need explicitly extracted for every routeTesting
Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines