add jasmine test account
[mkws-moved-to-github.git] / tools / apache2 / mkws-test
index 2114884..2b20e37 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
         SetOutputFilter DEFLATE 
     </Location> 
 
+    # standard MKWS account
     RewriteRule /service-proxy-auth  /service-proxy/?command=auth&action=login&username=mkws&password=mkws [P] # [NE,P]
 
+    # jasmine test account
+    RewriteRule /service-proxy-testauth  /service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P]
+
     ProxyPass        /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/
     ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/