File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 2525use GraphQL \Utils \TypeInfo ;
2626use GraphQL \Validator \Rules \ArgumentsOfCorrectType ;
2727use GraphQL \Validator \Rules \DefaultValuesOfCorrectType ;
28+ use GraphQL \Validator \Rules \DisableIntrospection ;
2829use GraphQL \Validator \Rules \FieldsOnCorrectType ;
2930use GraphQL \Validator \Rules \FragmentsOnCompositeTypes ;
3031use GraphQL \Validator \Rules \KnownArgumentNames ;
@@ -100,6 +101,7 @@ public static function defaultRules()
100101 'UniqueInputFieldNames ' => new UniqueInputFieldNames (),
101102
102103 // Query Security
104+ 'DisableIntrospection ' => new DisableIntrospection (DisableIntrospection::DISABLED ), // DEFAULT DISABLED
103105 'QueryDepth ' => new QueryDepth (QueryDepth::DISABLED ), // default disabled
104106 'QueryComplexity ' => new QueryComplexity (QueryComplexity::DISABLED ), // default disabled
105107 ];
You can’t perform that action at this time.
0 commit comments