簡體   English   中英

graphql受保護時如何使用Graphiql?

[英]How to use Graphiql when graphql protected?

我已將令牌添加到屬性文件中,但無法獲取資源,並且在請求 header 中沒有authorization ,我是否需要添加任何額外的屬性

graphiql:
    mapping: /graphiql
    endpoint:
      graphql: /graphql
      subscriptions: /subscriptions
    subscriptions:
      timeout: 30
      reconnect: false
    basePath: /
    headers:
      Authorization: "Bearer eyJraWQiOiJvMW5

在 UI 本身Authentication header in JSON ,參考下圖驗證

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM