Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with CORS #1478

Open
simplyYan opened this issue Feb 8, 2024 · 1 comment
Open

Problem with CORS #1478

simplyYan opened this issue Feb 8, 2024 · 1 comment

Comments

@simplyYan
Copy link

I simply couldn't use ml5.js in the browser. I was using an HTML file in Firefox, testing this amazing library. The error reported was that CORS was blocking it because it wasn't HTTP. I was using the example code from the "Getting Started" page of the documentation. Due to CORS, the image cannot be rendered or recognized. The error referred to me not being on HTTP. The only way out was to use NWjs to use ml5.js, and then it worked perfectly. The browser is Firefox.

@lindapaiste
Copy link
Contributor

Does it help if you add crossorigin="anonymous" to the HTML <img> tag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants