Giter VIP home page Giter VIP logo

Comments (10)

d-exclaimation avatar d-exclaimation commented on May 28, 2024 1

Yeah, I'll think I can update it now

from pioneer.

d-exclaimation avatar d-exclaimation commented on May 28, 2024 1

Not going to lie, it's a bit weird that it is disabled by default. It should be functioning properly now on v0.6.1. Do let me know if there are more things like this.

from pioneer.

cshadek avatar cshadek commented on May 28, 2024 1

Yeah I agree it's a bit weird that's the default.

Will do. Thanks for being so quick to respond! I'll recommend your library to my friends.

from pioneer.

cshadek avatar cshadek commented on May 28, 2024

I'm not entirely sure the best way to accomplish this. There could be another parameter in the Pioneer init to include a list of headers, or maybe a specific parameter for adding a bearer token? This would be immensely helpful to allow Pioneer to work in production.

from pioneer.

cshadek avatar cshadek commented on May 28, 2024

Actually it looks like some versions of GraphiQL have a way to add headers. Would this be a better option?

https://stackoverflow.com/questions/69735713/how-to-enable-header-editor-enable-in-graphiql-rails-gem

from pioneer.

cshadek avatar cshadek commented on May 28, 2024

graphql/graphiql#1543

from pioneer.

d-exclaimation avatar d-exclaimation commented on May 28, 2024

Yeah, I didn't notice that, I remembered GraphiQL having one. In this issue, it said that older version of GraphiQL used to have the feature to add headers and that the current version have a bug that somehow removed it. I'll see what I can do beside waiting for that issue to be resolved.

In the mean time, if you don't have to specifically use GraphiQL, you could try using .playground and setting the websocket protocol to .subscriptionTransportWs

from pioneer.

cshadek avatar cshadek commented on May 28, 2024

It looks like GraphiQL might already support this. Is this a simple change in the config?

graphql/graphiql#1543

from pioneer.

cshadek avatar cshadek commented on May 28, 2024

It sounds like all we need to do is pass in the headerEditorEnabled prop

from pioneer.

cshadek avatar cshadek commented on May 28, 2024

Awesome!

from pioneer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.