diff --git a/config/graphql.php b/config/graphql.php
index 02f8258ce3..e2b46d2b41 100644
--- a/config/graphql.php
+++ b/config/graphql.php
@@ -88,4 +88,17 @@
'expiry' => 60,
],
+ /*
+ |--------------------------------------------------------------------------
+ | Introspection
+ |--------------------------------------------------------------------------
+ |
+ | Introspection queries allow a user to see the schema and will power
+ | development tools. This is "auto" by default, which will enable
+ | it locally and keep it disabled everywhere else for security.
+ |
+ */
+
+ 'introspection' => env('STATAMIC_GRAPHQL_INTROSPECTION_ENABLED', 'auto'),
+
];
diff --git a/resources/views/graphql/graphiql.blade.php b/resources/views/graphql/graphiql.blade.php
index bbfe8b5abb..cff8df91d9 100644
--- a/resources/views/graphql/graphiql.blade.php
+++ b/resources/views/graphql/graphiql.blade.php
@@ -7,7 +7,6 @@
-
+
+ @if (!$introspection)
+
+ @endif
+