Home » Jquery » javascript – Firefox and chrome issues with jquery

javascript – Firefox and chrome issues with jquery

Posted by: admin February 22, 2020 Leave a comment


I am currently doing an assessment for a Calorie Counter app and I have some basic code written out. At the minute I am trying to add a meal in which the data will be stored to localstorage and the details will be written out in HTML, however I keep getting these errors.

Chromes error-from origin ‘null’ has been blocked by CORS policy:
Cross origin requests are only supported for protocol schemes: http,
data, chrome, chrome-extension, https.

Firefox error-XML Parsing Error: syntax error

I’m really just trying to figure out if these errors would stop my code from running/displaying on the page or if I have just coded it wrong.

How to&Answer: