graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Fix: ensure that status codes are checked in any case

Open ThomasObenaus opened this issue 5 years ago • 1 comments

If this check is missing then responses from the server with the graphql end-point that are not compliant to the graphql spec will be just ignored (not treated as an error). One reason for this behavior of the server could be (e.g. springboot) that the request is already rejected before it reaches the graphql end-point due to missing authorization. In this case the security filter that does not know about graphql responds with an error that is not compliant to the GQL spec. The same situation would be in case of a 404, 403 etc.

ThomasObenaus avatar Nov 10 '20 13:11 ThomasObenaus

This fix will really help, wasted a lot of time on this one. https://github.com/machinebox/graphql/issues/72

smettu1 avatar Jan 14 '22 18:01 smettu1