graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

Allow to suppress Hot Chocolate specific error codes

Open tobias-tengler opened this issue 2 years ago • 2 comments

Is your feature request related to a problem?

I'm just mirroring a request I saw on Slack here

Hot Chocolate adds additional error codes in the extensions of GraphQL errors, for example "HC0014" for syntax validation errors. As an attacker I could send an invalid request and know that the GraphQL server I'm targeting is using Hot Chocolate, because of the custom error code I would receive.

The solution you'd like

Add a switch that allows to hide these HC specific error codes.

Product

Hot Chocolate

tobias-tengler avatar Oct 15 '22 16:10 tobias-tengler