I’m working on freeCodeCamp’s build a bookmark manager project in localStorage and CRUD Operations of Javascript Certification when I came across a bug in the example project given by freeCodeCamp. When I click on the add bookmark button after I have put the information in the given inputs(name and url), it doesn’t work. Now this used to work back then and it would lead me back to main section and when I open the view category, I would see the bookmark. But today when I decided to come back and build it again, the example button didn’t work. I thought there is a bug within my browser but after digging a little bit, this is shown in the console:
Uncaught SecurityError: Failed to read the ‘localStorage’
property from ‘Window’: The document is sandboxed and
lacks the ‘allow-same-origin’ flag.
Could someone confirm whether this is a known issue with the finished example and explain how I can run the example with the bookmark functionality working?