GraphQL explorer returns application/json
bjunc opened this issue · 1 comments
bjunc commented
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;
...
bjunc commented
For anyone that comes across this issue, it appeared to be related to FOSRestBundle
, and not the GraphQLBundle
. Disabling FOSRestBundle
enabled the explorer.