Skip to content

Conversation

@adamwhitingnhs
Copy link
Contributor

@adamwhitingnhs adamwhitingnhs commented Jan 7, 2026

Overview

https://nhsd-jira.digital.nhs.uk/browse/PRMP-1213

Description

Modify the edge lambda handler to return the request if the method is OPTIONS.

Context

Currently the edge lambda will handle OPTIONS requests as well as GET/PUT. We don't want it to actually process OPTIONS requests, so we need to return them immediately to be forwarded to S3.

Checklist

Tasks for all changes:

  • 1. I have linked this PR to its Jira ticket.
  • 2. I have run git pre-commits. (WIP)
  • 3. I have added and/or updated relevant tests.
  • 4. I have updated relevant documentation.
  • 5. I have considered the cross-team impact (and have PR approval from both Core & Demographics if necessary).
  • 6. I have successfully deployed this change to a sandbox and witnessed unit and e2e tests passing:

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Code security issues found

View full details here.

@adamwhitingnhs adamwhitingnhs enabled auto-merge (squash) January 8, 2026 15:56
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2026

@adamwhitingnhs adamwhitingnhs merged commit 135103a into main Jan 8, 2026
18 of 19 checks passed
@adamwhitingnhs adamwhitingnhs deleted the PRMP-1213 branch January 8, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants