Is it possible to add a header on the introspectio...
# apollo-kotlin
n
Is it possible to add a header on the introspection? We need to add an auth token for ours to work.
m
From the command line, I think you can do
--header "Key: Value"
n
Is there a way you can do it with Gradle? I tried:
Copy code
header.set("X-Admin-Token" : "xxxxxxk")
but it’s giving me an error:
> Could not get unknown property 'header' for object of type com.apollographql.apollo3.gradle.internal.DefaultIntrospection.
n
❤️ thanks!
m
PS: if you move to
build.gradle.kts
, you'll get autocomplete for this kind of stuff
n
we’re working on an older branch right now 😞, our new stuff is all kts.
😢 1