BananaCakePop UI works only from localhost
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Product
Banana Cake Pop
Describe the bug
We are using standard Graphql integration with
app.UseEndpoints(endpoints => { endpoints.MapGraphQL(); });
When accessing BananaCakePop from browser and browser URL is http://localhost:8097/graphql/
everything works as expected.
But when I access UI by machine hostname http://machine-name:8097/graphql/
I get this error on client side
Do you have any ideas what can be done to pin down issue ? Thanks.
Steps to reproduce
- Access BananaCakePop UI by hostname
Relevant log output
{
"name": "TypeError",
"message": "Cannot read properties of undefined (reading 'addEventListener')",
"stack": "TypeError: Cannot read properties of undefined (reading 'addEventListener')\n at http://machine-name:8097/graphql/static/js/191.88fc520b.chunk.js:1:464182\n at ru (http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:116682)\n at _s (http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:136909)\n at http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:133499\n at _ (http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:162554)\n at MessagePort.R (http://machine-name:8097/graphql/static/js/917.89c7cf0e.js:2:163088)"
}
Additional Context?
No response
Version
12.16.0
Issue Analytics
- State:
- Created 7 months ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
HotChocolate quickstart example not working: no query ...
When I access localhost:5207/graphql, I'm not seeing any queries under "Documents". Here's what I tried without success: Use prerelease 12.4 ...
Read more >Introduction - Banana Cake Pop
Its intuitive UI enables you to visualize and explore your GraphQL schemas, making it easier to understand and work with complex structures. The ......
Read more >Banana Cake Pop OAuth 2 redirection fails with error ...
So the oauth2 provider currently only works reliably in the desktop app. The reason for this is that we use a popup window...
Read more >Creating a GraphQl backend in c# — How to get started ...
The Banana Cake Pop app hosted there lets you inspect your newly created GraphQl schema, offers auto-completion and shows the response to ...
Read more >Getting started with GraphQL and HotChocolate - YouTube
NET Core (Demo) [09:43] - Querying with Banana Cake Pop (Demo) ... https://github.com/ChilliCream/graphql-workshop What is up with 11 of Hot ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Temppus You are using
http
and in the BCP version that you are running, we have a call that only works in secure context. It was fixed around a month ago, you will find the find in BCP v3.0.4I also works with 12.16.2. Thanks.