icidasset / diffuse

A music player that connects to your cloud/distributed storage.
https://diffuse.sh
Other
811 stars 68 forks source link

Issue with CORS using GDrive as a source #426

Closed Netherquark closed 1 month ago

Netherquark commented 2 months ago

Same error when I try to play any track:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at google://ya29.a0AcM612y3cx842FoHgqASB30xqdP3_32bx8U8djjd_hhlPHESgJmsMe_e6HVUyWO8YBbwG0t24IX3qYSfd2OaPvNHw7TH61nZXZ29-sV1VbIK3FI1ZliAUDtxvfH-4MXIZzg-X5ATstHFUkFoahgncOUh6wwild0wii08X1YaCgYKAW8SARESFQHGX2MitiXYijgCgSMZp0FpHGnUaA0174:1723186306646:1//0gr2lbI18UuNsCgYIARAAGBASNwF-L9Ir4C5NJz4Lt9KY4OFGFRpMtf6DQi_k6yY_vj3_IVnbMcB8zIze82I4m2e5DmvjhdCGuNg:720114869239-74amkqeila5ursobjqvo9c263u1cllhu.apps.googleusercontent.com:uHBInBeGnA38FOlpLTEyPlUv:16062871264131@1RomXTVJEiBusGNCJie3fbDrExn8271mo. (Reason: CORS request not http).

icidasset commented 2 months ago

Hey! Thanks for the bug report, I assume this is in the nightly version? I may have messed things up during the recent refactor 🙈

Netherquark commented 2 months ago

Yep, nightly v3.5.0

icidasset commented 1 month ago

Should be fixed 👀

Netherquark commented 1 month ago

Skipping tracks after sources are processed still results in these logs:

The resource at “https://nightly.diffuse.sh/images/diffuse__icon-dark.svg” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. [nightly.diffuse.sh](https://nightly.diffuse.sh/#/sources)
The resource at “https://nightly.diffuse.sh/fonts/Montserrat/Variable/variable.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. [nightly.diffuse.sh](https://nightly.diffuse.sh/#/sources)
Failed to load ‘https://www.googleapis.com/drive/v3/files/1X1GG64UTcZy1t3rw8Ogtitg1Ex5mwSBO?alt=media’. A ServiceWorker intercepted the request and encountered an unexpected error. [service-worker.js:1:2308](https://nightly.diffuse.sh/service-worker.js)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://ws.audioscrobbler.com/2.0. (Reason: CORS request did not succeed). Status code: (null).

Failed to load ‘https://www.googleapis.com/drive/v3/files/1mKSvAXYAxpThx3Mnh429T_UETrJUk7kR?alt=media’. A ServiceWorker intercepted the request and encountered an unexpected error. [service-worker.js:1:2308](https://nightly.diffuse.sh/service-worker.js)
Couldn't play audio automatically. Please resume playback manually. DOMException: The fetching process for the media resource was aborted by the user agent at the user's request.
    at https://nightly.diffuse.sh/js/ui/index.js:1
    at https://nightly.diffuse.sh/js/ui/index.js:1
    Qe https://nightly.diffuse.sh/js/ui/index.js:1
    c https://nightly.diffuse.sh/js/ui.elm.js:25
    v https://nightly.diffuse.sh/js/ui.elm.js:1
    c https://nightly.diffuse.sh/js/ui.elm.js:25
    b5 https://nightly.diffuse.sh/js/ui.elm.js:25
    ov https://nightly.diffuse.sh/js/ui.elm.js:25
    v1 https://nightly.diffuse.sh/js/ui.elm.js:25
    S5 https://nightly.diffuse.sh/js/ui.elm.js:25
    d1 https://nightly.diffuse.sh/js/ui.elm.js:25
    S https://nightly.diffuse.sh/js/ui.elm.js:25
    a https://nightly.diffuse.sh/js/ui.elm.js:25
[index.js:1:14027](https://nightly.diffuse.sh/js/ui/index.js)
Couldn't play audio automatically. Please resume playback manually. DOMException: The fetching process for the media resource was aborted by the user agent at the user's request. [index.js:1:14027](https://nightly.diffuse.sh/js/ui/index.js)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://ws.audioscrobbler.com/2.0. (Reason: CORS request did not succeed). Status code: (null).

​