Browse Source

Modified security and HTML 5 routing

Bryan Allred 12 years ago
parent
commit
bd846c2780
2 changed files with 5 additions and 4 deletions
  1. 4 3
      crossdomain.xml
  2. 1 1
      scripts/app.js

+ 4 - 3
crossdomain.xml

6
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
6
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
7
7
8
<!-- Most restrictive policy: -->
8
<!-- Most restrictive policy: -->
9
<!--
9
10
	<site-control permitted-cross-domain-policies="none"/>
10
	<site-control permitted-cross-domain-policies="none"/>
11
-->
11
12
	
12
	
13
	
13
	
14
<!-- Least restrictive policy: -->
14
<!-- Least restrictive policy: -->
15
15
<!--
16
	<site-control permitted-cross-domain-policies="all"/>
16
	<site-control permitted-cross-domain-policies="all"/>
17
	<allow-access-from domain="*" to-ports="*" secure="false"/>
17
	<allow-access-from domain="*" to-ports="*" secure="false"/>
18
	<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
18
	<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
19
-->
19
20
20
<!--
21
<!--
21
  If you host a crossdomain.xml file with allow-access-from domain="*" 	 	
22
  If you host a crossdomain.xml file with allow-access-from domain="*" 	 	

+ 1 - 1
scripts/app.js

2
2
3
angular.module("hexmeh", [])
3
angular.module("hexmeh", [])
4
    .config(["$routeProvider", "$locationProvider", function ($routeProvider, $locationProvider) {
4
    .config(["$routeProvider", "$locationProvider", function ($routeProvider, $locationProvider) {
5
        //$locationProvider.html5Mode(true);
5
        $locationProvider.html5Mode(true);
6
        
6
        
7
        $routeProvider.when("/", {
7
        $routeProvider.when("/", {
8
            controller: MainController,
8
            controller: MainController,