Wrong message in local host
I have done a slide show and then click on an image and the image I use stops this code
this.nr42a_btn.addEventListener("click", musicToggle.bind(this));
this.nr42b_btn.addEventListener("click", musicToggle.bind(this));
var on = 0;
function musicToggle() {
if (on == 0) {
this.nr42a_btn.visible = false;
this.nr42b_btn.visible = true;
this.stop();
on = 1;
} else {
this.nr42a_btn.visible = true;
this.nr42b_btn.visible = false;
this.play("nr42");
on = 0;
}
}
In each image I have done from jpg to the movieClip symbol but when I click on the image I getting these messages in the Chrome console:
"Uncaught An error has occurred. createjs-2015.11.26.min.js:13 This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images."
"createjs-2015.11.26.min.js:17 Access to XMLHttpRequest at 'file:///C:/Users/%C3%84garen/Documents/Homepage/Jag/WebAudioPluginTest.fail' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https."
"A cookie associated with a cross-site resource at http://createjs.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032."
"createjs-2015.11.26.min.js:17 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/."
When I then put the slide show on a web server so works it but not on local host. What could be the reason?
