Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
authorMike Taylor <mike@indexdata.com>
Thu, 23 Jan 2014 15:25:26 +0000 (15:25 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 23 Jan 2014 15:25:26 +0000 (15:25 +0000)
tools/apache2/mkws-dev
tools/apache2/mkws-test
tools/htdocs/mkws.js

index d3d195f..4608c54 100644 (file)
     DocumentRoot /home/indexdata/mkws-dev/examples/htdocs
     Alias /tools/htdocs /home/indexdata/mkws-dev/tools/htdocs
 
+    # CORS setting
+    Header set Access-Control-Allow-Credentials true
+    Header set Access-Control-Allow-Origin "*"
+
     # compress text output
     <Location />
         AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
index 2114884..8625691 100644 (file)
     DocumentRoot /home/indexdata/mkws-test/examples/htdocs
     Alias /tools/htdocs /home/indexdata/mkws-test/tools/htdocs
 
+    # CORS setting
+    Header set Access-Control-Allow-Credentials true
+    Header set Access-Control-Allow-Origin "*"
+
     # compress text output
     <Location />
         AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
index fb5e38a..12f3f71 100644 (file)
@@ -77,8 +77,8 @@ if (mkws_config == null || typeof mkws_config != 'object') {
 
 // wrapper for jQuery lib
 function _make_mkws_team($, teamName) {
-    if (console && console.log)
-       console.log("run _make_mkws_team(" + (teamName ? teamName : "") + ")");
+    // if (console && console.log) // disabled, will fail in IE8
+    // console.log("run _make_mkws_team(" + (teamName ? teamName : "") + ")");
 
     // call this function only once
     if (mkws.init) {