以下のAPIコールを使用してフェッチ呼び出しを行い、共有ポイントのオンラインリストから添付ファイルを取得しています。何らかの理由で以前にsharepointにオンラインでログインしたときにAPI呼び出しが機能しますが、Chromeでゲストウィンドウを開くと302の応答が返され、画像は表示されません。共有ポイントへの他のAPI呼び出しは、アプリケーションにログインするときに認証するので、このように動作しません。Sharepoint list fetchからの応答302 get list attachmentsへの呼び出し
fetchListAttachments(personsStateArray: any[], index: number) {
const dataUrl =
`/api/spdata/GetListAttachments('${this.listName
}')/items?$select=AttachmentFiles&$expand=AttachmentFiles`;
fetch(dataUrl, { credentials: "include", headers: { accept: "application/json" } })
.then(response => response.json());
}