youshido-php / GraphQLBundle

Pure PHP implementation of GraphQL Server – Symfony Bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL explorer returns application/json

bjunc opened this issue · comments

When attempting to navigate to: localhost:8000/graphql/explorer, I get the page markup, but with content-type: application/json. Is this due to the routing controller?

<!DOCTYPE html>
<html>
<head>
    <style>
        body {
            height: 100%;
            margin: 0;
            width: 100%;
            overflow: hidden;
        }

        #graphiql {
            height: 100vh;
        }
        .token-button {
            position: absolute;
            left: 250px;
            top: 12px;
...

For anyone that comes across this issue, it appeared to be related to FOSRestBundle, and not the GraphQLBundle. Disabling FOSRestBundle enabled the explorer.