AngularJS Error: Cross origin requests…

Ran across this error while developing an Angular application. The fix turned out to be quite simple. Assuming NodeJS is installed and https-server is installed globally, then just run https-server <file location> which will run a server localhost:8080. If needed go to nodejs.org to install node, then in a terminal/command window run npm install https-server -g to install https-server globally.

Leave a comment