File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,10 @@ api_platform:
147
147
# Enabled by default with installed webonyx/graphql-php and Twig.
148
148
enabled : false
149
149
150
+ introspection :
151
+ # Enabled by default with installed webonyx/graphql-php.
152
+ enabled : true
153
+
150
154
# The nesting separator used in the filter names.
151
155
nesting_separator : _
152
156
Original file line number Diff line number Diff line change @@ -116,6 +116,20 @@ api_platform:
116
116
# ...
117
117
` ` `
118
118
119
+ # # Disabling the Introspection Query
120
+
121
+ For security reason, the introspection query should be disabled to not expose the GraphQL schema.
122
+
123
+ If you need to disable it, it can be done in the configuration :
124
+
125
+ ` ` ` yaml
126
+ # api/config/packages/api_platform.yaml
127
+ api_platform:
128
+ graphql:
129
+ introspection: false
130
+ # ...
131
+ ` ` `
132
+
119
133
# # Request with `application/graphql` Content-Type
120
134
121
135
If you wish to send a [POST request using the `application/graphql` Content-Type](https://graphql.org/learn/serving-over-http/#post-request),
You can’t perform that action at this time.
0 commit comments