Update graphql-playground endpoint

This commit is contained in:
Valter Martinek
2022-11-11 11:31:38 +01:00
committed by Syer10
parent bf7f1a04b3
commit 0c555e88d3
3 changed files with 24 additions and 8 deletions

View File

@@ -50,9 +50,11 @@
</div>
<script>window.addEventListener('load', function (event) {
GraphQLPlayground.init(document.getElementById('root'), {
// options as 'endpoint' belong here
settings: {'request.credentials': 'same-origin'},
endpoint: '/${graphQLEndpoint}',
subscriptionEndpoint: '/${subscriptionsEndpoint}'
})
})</script>
</body>
</html>
</html>