I try to use nux.js with apollo. I have to send an authorization header.In my nuxt.config.js Itry this :
apollo: {
clientConfigs: {
default: {
httpEndpoint: 'https://graphql.fauna.com/graphql',
headers: {
Authorization: 'Bearer xxxxxx'
}
}
}
}
But I have this error when try to make a query:
"GraphQL error: Missing authorization header".
How can I send the header ?
Best regards