Applet Security FAQ

From WeBWorK_wiki
Jump to navigation Jump to search

Crossdomain policy file for Flash Applets[edit]

  • Cross-domain policy files

"Another change to the Flash Player 7 framework is the use of cross-domain policy files. A policy file is a simple XML file that gives the Flash Player permission to access data from a given domain without displaying a security dialog. When placed on a server, it tells the Flash Player to allow direct access to data on that server, without prompting the user grant access. "

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

Java security[edit]

  • 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: 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: find out which policy files are needed to avoid this problem so that we can use geogebra hosted on sites other than the local webwork server.