]> git.openstreetmap.org Git - rails.git/commitdiff
Add a client access policy for Silverlight applications
authorTom Hughes <tom@compton.nu>
Mon, 10 Jan 2011 17:27:52 +0000 (17:27 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 10 Jan 2011 17:29:17 +0000 (17:29 +0000)
public/clientaccesspolicy.xml [new file with mode: 0644]

diff --git a/public/clientaccesspolicy.xml b/public/clientaccesspolicy.xml
new file mode 100644 (file)
index 0000000..5ba9c81
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<access-policy>
+  <cross-domain-access>
+    <policy>
+      <allow-from http-request-headers="*" http-methods="*">
+        <domain uri="*"/>
+      </allow-from>
+      <grant-to>
+        <resource path="/api" include-subpaths="true"/>
+        <resource path="/oauth" include-subpaths="true"/>
+      </grant-to>
+    </policy>
+  </cross-domain-access>
+</access-policy>