Got the following problem with angularjs XMLHttpRequest cannot load file:... . Cross origin requests are only supported for HTTP My HTML:
<!doctype html>
<html lang="en" ng-app="app">
<head>
<script src="angular.js"></script>
<script src="angularr.js"></script>
<script src="app.js"></script>
</head>
<body>
<div ng-view></div>
</body>
</html>
And my app.js
'use strict';
var app = angular.module("app", ['ngRoute'])
.config(function ($routeProvider) {
$routeProvider.
when("/", {templateUrl:"first.html"})
});
What should I do?