Disable suggestions in errors message
See original GitHub issueContext
We have some mutation defined:
extend type Mutation {
updateUserDetail(input: UpdateUserDetailsInput!): UpdateUserDetailsPayload
}
The user sends the following query:
mutation {
updateUserDetil {
user {
id
}
}
}
The server will response with an error maintaining in the message: "message": "Cannot query field \"updateUserDetil\" on type \"Mutation\". Did you mean \"updateUserDetail\"?",
The problem
In case of a private API, we generally want to avoid leaking information about our API. Disabling the introspection is a good step, but the recommendations are leaking some information that can be used by attackers. This talk discuss this issue (from the perspective of a pentester).
Propositions
- Remove suggestions for any environment that is not development
- Add a setting to force override the previous change
Issue Analytics
- State:
- Created 3 years ago
- Reactions:15
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Disable Windows error message popups - IBM
There are 2 possible ways to disable a windows error message popups: 1. Disable Dr. Watson message boxes on the system:.
Read more >How to disable pop-up error messages for code editor?
Open Visual Studio, go to Tools -> Options... -> Text Editor -> C# -> Advanced and uncheck the Display diagnostics inline (experimental) ...
Read more >Disable Those Annoying Error Messages! - YouTube
This is a short tutorial showing you how to disable error messages that pop up every time an application fails or runs into...
Read more >How to disable error message? - Power Platform Community
Solved: Hi all, in my application an if check is executed. If(achelivello.Run(Label8).livello = "liv1"; Navigate('Livello 1');
Read more >How to Disable WordPress PHP Error Messages - GreenGeeks
In this tutorial, I'm going to show you how to disable the warning message in WordPress when it comes to debugging. It's a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just found a work around for this and thought i’d share. Use the FormatError feature and mask any errors you don’t want the client seeing. In my case i mask them all.
@supermonkeybrainz sort of a hack, but you could use either fork
graphql-js
or usepatch-package
to add this single line: