Open subhan-nadeem opened 2 weeks ago
Could you create a reproduction on CodeSandbox? Thanks! 🙏
I'd love to help you and learn more about your use case of GraphQL Mesh. If you give more information at least, we can try to reproduce by ourselves. Thanks!
Describe the bug
In GraphQL Mesh, faced internal crashes where API responses were crashing due
Access-Control-Allow-Origin
header being set with nil value by response server:Root cause seems to be the fact that the library does not guard against nil header values here: https://github.com/ardatan/whatwg-node/blob/master/packages/node-fetch/src/Headers.ts#L266
Should be an easy fix hopefully?
To Reproduce Steps to reproduce the behavior:
Access-Control-Allow-Origin
to undefined/nil in response to a queryEnvironment:
whatwg-node/fetch@0.9.16
"@graphql-mesh/cli": "^0.88.6"
@ardatan