1

我正在使用 Google javascript 客户端库与 Google Drive 一起使用来查看和打开文件。

它在我的网站上运行良好,但我希望它在本机 Mac 应用程序的 WebView 中运行。

当我尝试在 Mac 上的 WebView 中使用 javascript 授权我的应用程序时,我得到Failed to load resource: the server responded with a status of 400 (Bad Request).

问题是请求中的这个 URL 参数origin=file://

从我读过的内容来看,这应该是 localhost 但我不知道如何通过客户端库来纠正这个问题。

4

0 回答 0