jaydenseric/apollo-upload-client

Broken compatibility with HotChocolate 13.2 ->

msironen opened this issue · 1 comments

So this isn't your fault but ChilliCreams, but someone over there thought this was a good idea:

Note 2: HTTP Header GraphQL-preflight: 1 is required since version 13.2 due to security reasons.

(https://chillicream.com/docs/hotchocolate/v13/server/files)

While still specifically naming apollo-upload-client as one of the clients that support this "spec" (which I guess doesn't include that teensy weensy header requirement they just came up with).

The fix/current workaround is to add:

         context: {
                headers: {
                    "GraphQL-preflight" : "1"
                }
            }

upload mutations.