NastuzziSamy / files_external_gdrive

[BETA - UNSTABLE] GDrive external storage for NextCloud
GNU Affero General Public License v3.0
79 stars 23 forks source link

Does not work with NC 16 - various JS errors #50

Closed sgofferj closed 5 years ago

sgofferj commented 5 years ago

Grant access button does nothing. Console show the following:

The resource from “https://home.gofferje.net/cloud/apps/files/” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Loading failed for the <script> with source “https://home.gofferje.net/cloud//cloud/apps/files_external_gdrive/js/gdrive.js?v=a64477ae-23”. externalstorages:56:1

Note: the url is home.gofferje.net/cloud

TypeError: result.data is undefined
    <anonymous> https://home.gofferje.net/cloud/apps/files_external/js/oauth2.js?v=a64477ae-23:87
    u https://home.gofferje.net/cloud/core/js/dist/main.js?v=a64477ae-23:39
    fireWith https://home.gofferje.net/cloud/core/js/dist/main.js?v=a64477ae-23:39
    k https://home.gofferje.net/cloud/core/js/dist/main.js?v=a64477ae-23:39
    t https://home.gofferje.net/cloud/core/js/dist/main.js?v=a64477ae-23:39
    oauth2.js:87:7
netcasepl commented 5 years ago

The same here with 16.0.3 version.

hubba1987 commented 5 years ago

Me also having the same issue

hubba1987 commented 5 years ago

Guys, this fixed helped me https://github.com/NastuzziSamy/files_external_gdrive/issues/44

sgofferj commented 5 years ago

@hubba1987 Editing the source yourself in NC is a bad idea because then the code integrity check fails.

sgofferj commented 5 years ago

Works after update to 16.0.4.