ソースを参照

fix: remove token prefix Bearer

hi-cactus! 3 年 前
コミット
0a7f01d04f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/components/Upload.tsx

+ 1 - 1
app/components/Upload.tsx

@@ -40,7 +40,7 @@ const Upload: RefForwardingComponent<
   const { name, action, onChange } = props
   const [loading, setLoading] = useState(false)
   const headers = {
-    authorization: `Bearer ${localStorage.getItem('TOKEN')}`
+    authorization: `${localStorage.getItem('TOKEN')}`
   }
   const change = useCallback((info: UploadChangeParam) => {
     const { status, response } = info.file