Skip to content

Use x forwarded headers correctly#295

Open
Themitchell wants to merge 1 commit intomainfrom
use-x-forwarded-headers-correctly
Open

Use x forwarded headers correctly#295
Themitchell wants to merge 1 commit intomainfrom
use-x-forwarded-headers-correctly

Conversation

@Themitchell
Copy link
Contributor

What is the change?

Use X_FORWARDED_HOST header in production like environments

Why are we making this change?

NHS login redirection happens to the instance url not the users requested domain. This means we no longer have to hardcode the url in auth libraries

@Themitchell Themitchell force-pushed the use-x-forwarded-headers-correctly branch from 8383b60 to 3157b2d Compare February 19, 2026 11:51
@Themitchell Themitchell force-pushed the use-x-forwarded-headers-correctly branch from 3157b2d to 26a00c6 Compare March 9, 2026 15:39
Use XFORWARDED HOST header correctly and use the default auth enpoint.
VTRs can be pased vie extra auth params
@Themitchell Themitchell force-pushed the use-x-forwarded-headers-correctly branch from 26a00c6 to ea03043 Compare March 9, 2026 15:53
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2026

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

The review app is available at this URL:
https://pr-295.non-live.digital-lung-cancer-screening.nhs.uk/
You must authenticate with HTTP basic authentication. Ask the team for credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant