X-HTTP-Method-Override breaks relationship field on AWS CloudFront hosting. #7248
BarrySaikSoundry
started this conversation in
General
Replies: 2 comments
-
I have been struggling with this issue for a couple of days. It took me a while to figure out that the But to me it seams a bit unnecessary to use it in: |
Beta Was this translation helpful? Give feedback.
0 replies
-
I made a PR addressing this #8017 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
Adapters and Plugins
No response
Beta Was this translation helpful? Give feedback.
All reactions