GraphiQL connection issues #4474
-
Does anyone have a reference on how to get GraphiQL working with the latest version (on .net 6) ? I had a play with this library and couldn't get https://graphiql-online.com/ to detect the schema from http://localhost:5000/graphql Is there something non-standard about this implementation, or is there some necessary configuration to make it work with third party tools? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Works fine with this repo, just not my own, created via following the docs! https://github.com/ChilliCream/graphql-workshop/tree/master/code/complete Edit: I solved this, It was a CORS issue. For anyone following the 'get started' guide who is unable to get graphiQL working, you'll need the following configuration. For .net 6, in Program.cs
and then after var app = builder.Build();
|
Beta Was this translation helpful? Give feedback.
Works fine with this repo, just not my own, created via following the docs!
https://github.com/ChilliCream/graphql-workshop/tree/master/code/complete
Edit:
I solved this, It was a CORS issue.
For anyone following the 'get started' guide who is unable to get graphiQL working, you'll need the following configuration.
For .net 6, in Program.cs
and then after var app = buil…