yathit / ydn-db

Javascript database module for Indexeddb, Web SQL and localStorage storage mechanisms supporting version migration, advanced query, SQL and transaction.
Apache License 2.0
503 stars 41 forks source link

Homepage is non-functional (JS fails to load), CORS related #130

Open fatso83 opened 2 years ago

fatso83 commented 2 years ago

Tried downloading this library, since I remember checking it out in 2016, but it seems pretty non-functional. There is no NPM package and the homepage, while pretty, does not work. The downloads section is missing bits, most importantly a download button, probably the rendering fails due to all the javascript errors. Lots of 404s, 401s and whatnots.

Failed to load resource: the server responded with a status of 401 () downloads.html:1 Access to XMLHttpRequest at ... has been blocked by CORS policy ``` Failed to load resource: net::ERR_BLOCKED_BY_CLIENT accounts.google.com/o/oauth2/iframerpc?action=checkOrigin&origin=https%3A%2F%2Fyathit.github.io&client_id=968361937576-hka195tuontd5vmeuhuntv15lgcpn08v.apps.googleusercontent.com:1 Failed to load resource: the server responded with a status of 401 () downloads.html:1 Access to XMLHttpRequest at 'https://ydn-db-d1.storage.googleapis.com/?delimiter=%2F&max-keys=200' from origin 'https://yathit.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. deflate-base64-min.js:57 Uncaught TypeError: Cannot read properties of undefined (reading 'CommonPrefixes') at download-app.js:57:42 at tc. (download-app.js:56:511) at Uc.g.xa (download-app.js:50:210) at Wb (download-app.js:31:180) at P (download-app.js:29:292) at Dc (download-app.js:41:112) at Fc (download-app.js:42:415) at tc.g.za (download-app.js:41:508) at tc.g.oa (download-app.js:41:485) ydn-db-d1.storage.googleapis.com/?delimiter=%2F&max-keys=200:1 Failed to load resource: net::ERR_FAILED downloads.html:1 Access to XMLHttpRequest at 'https://ydn-db-d1.storage.googleapis.com/?delimiter=%2F&max-keys=200' from origin 'https://yathit.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. environment-e11d3b3390d3f29cba3f.js:69 Uncaught TypeError: Cannot read properties of undefined (reading 'CommonPrefixes') at website-app.js:69:42 at qd. (website-app.js:68:463) at Od.h.Ma (website-app.js:63:211) at Oc (website-app.js:42:463) at S (website-app.js:41:292) at yd (website-app.js:53:112) at Ad (website-app.js:54:415) at qd.h.Oa (website-app.js:53:508) at qd.h.wa (website-app.js:53:485) ydn-db-d1.storage.googleapis.com/?delimiter=%2F&max-keys=200:1 Failed to load resource: net::ERR_FAILED Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'. Navigated to https://yathit.github.io/ydn-db/doc/setup/setup.html VM112:20 GET https://apis.google.com/js/plusone.js net::ERR_BLOCKED_BY_CLIENT (anonymous) @ VM112:20 (anonymous) @ VM112:137 VM111:100 GET https://yathit.github.io/sitemap.xml 404 Je @ VM111:100 (anonymous) @ VM111:100 (anonymous) @ VM111:100 VM111:92 Uncaught TypeError: Cannot read properties of null (reading 'documentElement') at ye (VM111:92:176) at XMLHttpRequest.Je.f.onload (VM111:100:1) ye @ VM111:92 Je.f.onload @ VM111:100 load (async) Je @ VM111:99 (anonymous) @ VM111:100 (anonymous) @ VM111:100 1288813916-idpiframe.js:178 GET https://accounts.google.com/o/oauth2/iframerpc?action=checkOrigin&origin=https%3A%2F%2Fyathit.github.io&client_id=968361937576-hka195tuontd5vmeuhuntv15lgcpn08v.apps.googleusercontent.com 401 Ch @ 1288813916-idpiframe.js:178 Dh @ 1288813916-idpiframe.js:178 (anonymous) @ 1288813916-idpiframe.js:204 (anonymous) @ 1288813916-idpiframe.js:186 m.getItem @ 1288813916-idpiframe.js:163 W.H @ 1288813916-idpiframe.js:186 ei @ 1288813916-idpiframe.js:199 si @ 1288813916-idpiframe.js:204 m.Hf @ 1288813916-idpiframe.js:206 (anonymous) @ 1288813916-idpiframe.js:217 Uh.Nf @ 1288813916-idpiframe.js:194 b @ 1288813916-idpiframe.js:205 Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'. Navigated to https://github.com/yathit/ydn-db ydn-db:1 Refused to load the font 'https://github.com/yathit/res/Soleil.woff2' because it violates the following Content Security Policy directive: "font-src github.githubassets.com". ydn-db:1 Refused to load the font 'https://github.com/yathit/res/Soleil.woff2' because it violates the following Content Security Policy directive: "font-src github.githubassets.com". issues:1 Autofocus processing was blocked because a document already has a focused element. Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'. Navigated to https://github.com/yathit/ydn-db/issues/130 130:1 Refused to load the font 'https://github.com/yathit/ydn-db/issues/res/Soleil.woff2' because it violates the following Content Security Policy directive: "font-src github.githubassets.com". 130:1 Refused to load the font 'https://github.com/yathit/ydn-db/issues/res/Soleil.woff2' because it violates the following Content Security Policy directive: "font-src github.githubassets.com". ```