I am testing a web page and some javascript i wrote to make an api call . However when i execute the code in the console in chrome or from the webpage i get the following error
"No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. "
I have not hosted this anywhere and i am opening the html file which is located on my computer.
Is there any way to get around this so that i can test my code and make a successful api call from the browser when the files are located on my computer?