You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the new Next.js App router and an Graphql API in backend.
When the query is run, I always have 401 Unauthorized. For your information, I set the fetchOptions property as it's mentionned in the doc. Having a look in the console log, I have noticed the Authorization key in headers is not set.
Is there something I did wrong ? Thanks for your help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am using the new Next.js App router and an Graphql API in backend.
When the query is run, I always have 401 Unauthorized. For your information, I set the fetchOptions property as it's mentionned in the doc. Having a look in the console log, I have noticed the Authorization key in headers is not set.
Is there something I did wrong ? Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions