How do you debug it?
Maybe I'm wrong, as I am also learning. but below are 1 possible causes of errors.
Are you debugging it through the file: // (Run as local files)? Look at your URL bar.
If this is a file: // .. for safari, they do not impose XSS (Cross Site Scripting) for files that run locally. But for chrome, they have XSS (Cross Site Scripting) for the local file.
. Chrome , ââ .