0xfe/vexchords

Javascript console errors trying to access http://localhost:8203/

Opened this issue · 1 comments

Great library, but I get continuous errors in the console log.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8203/sockjs-node/info?t=1677164371085. (Reason: CORS request did not succeed). Status code: (null).

It's because you're using dev.js which is the development version which makes calls to the locally running webserver host.

I tried to use the non-dev version which shouldn't have this problem but I couldn't get that to work at all never mind give some errors in the console.

In the end I made my own copy of https://cdn.jsdelivr.net/npm/vexchords@1.2.0/dist/vexchords.dev.js and changed the eval line right at the bottom to this

(function() {})();
module.exports = __webpack_require__(/*! ./index.js */"./index.js");