Difference between revisions of "Applet Security FAQ"

From WeBWorK_wiki
Jump to navigation Jump to search
(New page: Category:Applets)
 
Line 1: Line 1:
  +
=== Crossdomain policy file for Flash Applets ===
  +
  +
  +
  +
  +
* The <code>crossdomain.xml</code> file is placed at the top level of the server -- in the directory accessed by <code>http://myserver.edu/</code> -- NOT in the <code>...webwork2/htdocs </code> file which is accessed by <code>http://myserver.edu/webwork2_files</code>
  +
* We use this low security crossdomain file. File name: <code>crossdomain.xml</code>
  +
<?xml version="1.0"?>
  +
  +
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
  +
  +
<cross-domain-policy>
  +
  +
<allow-access-from domain="*" />
  +
  +
</cross-domain-policy>
  +
</xml>
  +
* More information at: http://kb2.adobe.com/cps/142/tn_14213.html
  +
  +
=== Java security ===
  +
  +
* There may be issues if one tries to use a java applet which is hosted
  +
on a different site from the WeBWorK server. So far this is only noticed only on the Safari server which throws exceptions of the form <code> Error: java.security.PrivilegedActionException: sun.plugin.liveconnect.OriginNotAllowedException: JavaScript is not from the same origin as the Java code, </code>. Apparently Safari has stricter security rules.
  +
* This error will occur for example if the geogebra applet is not hosted on the webwork server. It is not immediately apparent to the user but the error messages can be found by looking at Safar's error console (in the developer menu)
  +
* Project: investigate which policy files are needed to avoid this problem.
 
[[Category:Applets]]
 
[[Category:Applets]]

Revision as of 13:38, 13 July 2009

Crossdomain policy file for Flash Applets

  • The crossdomain.xml file is placed at the top level of the server -- in the directory accessed by http://myserver.edu/ -- NOT in the ...webwork2/htdocs file which is accessed by http://myserver.edu/webwork2_files
  • We use this low security crossdomain file. File name: crossdomain.xml
<?xml version="1.0"?>
  <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
  <cross-domain-policy>
  <allow-access-from domain="*" />
  </cross-domain-policy>
</xml>

Java security

  • There may be issues if one tries to use a java applet which is hosted

on a different site from the WeBWorK server. So far this is only noticed only on the Safari server which throws exceptions of the form Error: java.security.PrivilegedActionException: sun.plugin.liveconnect.OriginNotAllowedException: JavaScript is not from the same origin as the Java code, . Apparently Safari has stricter security rules.

  • This error will occur for example if the geogebra applet is not hosted on the webwork server. It is not immediately apparent to the user but the error messages can be found by looking at Safar's error console (in the developer menu)
  • Project: investigate which policy files are needed to avoid this problem.