We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is some way to disable introspection, I can't find the way and in production it has security problems.
The text was updated successfully, but these errors were encountered:
Following customization worked for me for 'io.leangen.graphql:graphql-spqr-spring-boot-starter:0.0.5' Hope this helps!
@Configuration public class GraphqlSchemaConfig { @Bean public BeanPostProcessor graphqlSchemaCustomizer() { return new BeanPostProcessor() { @Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { if (bean instanceof GraphQLSchemaGenerator) { GraphQLSchemaGenerator generator = (GraphQLSchemaGenerator) bean; generator.withSchemaProcessors((schemaBuilder, buildContext) -> { schemaBuilder.fieldVisibility(NoIntrospectionGraphqlFieldVisibility.NO_INTROSPECTION_FIELD_VISIBILITY); return schemaBuilder; }); return generator; } return bean; } }; } }
Sorry, something went wrong.
No branches or pull requests
There is some way to disable introspection, I can't find the way and in production it has security problems.
The text was updated successfully, but these errors were encountered: