rmosolgo / graphiql-rails

Mount the GraphiQL query editor in a Rails app
MIT License
447 stars 137 forks source link

Add custom header support #12

Closed mynameisrufus closed 8 years ago

mynameisrufus commented 8 years ago

This allows you to add custom headers such as an authorization header so you can put graphiql behind a token login such as https://graphql.buildkite.com/explorer

rmosolgo commented 8 years ago

:+1: This is awesome, I love the idea! I just want to make sure we support CSRF token, since that is a common requirement.

rmosolgo commented 8 years ago

Thanks for this feature! I have an idea for CSRF token support, so I'm going to try it before cutting a new version.

rmosolgo commented 8 years ago

🚢 in 1.3.0!

veeral-patel commented 5 years ago

@rmosolgo Hey - how would I go about adding an Authorization header to my requests?