Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-HTTP-Method-Override breaks relationship field on AWS CloudFront hosting. #7007

Closed
BarrySaikSoundry opened this issue Jul 2, 2024 · 0 comments
Labels

Comments

@BarrySaikSoundry
Copy link

BarrySaikSoundry commented Jul 2, 2024

Link to reproduction

No response

Payload Version

v3.0.0-beta.56

Node Version

20

Next.js Version

15-rc

Describe the Bug

AWS cloudfront removes the X-HTTP-Method-Override header from HTTP requests as a security measure. In PR#6487 #6487 a feature was added for what looks like an edge case of having a large number of items in a relationship field which uses the X-HTTP-Method-Override to tunnel GET requests in POST. This breaks the loading of items and the use of the relationship field on cloudfront hosting, which is also used by AWS amplify.

Reproduction Steps

Create a simple relationship between two collections, deploy your project on AWS Amplify. When you try to select the pick list to input the relationship fields you will see the list of items does not load:
image
image

Adapters and Plugins

No response

@BarrySaikSoundry BarrySaikSoundry added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Jul 2, 2024
@payloadcms payloadcms locked and limited conversation to collaborators Jul 19, 2024
@paulpopus paulpopus converted this issue into discussion #7248 Jul 19, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Jul 19, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

1 participant