We're building an app that loads a user's photos from facebook. It seems facebook hosts these images across multiple hosts. Is it possible to dynamically add a cross domain policy, after a Security sandbox violation has occurred?

For example...

```
try
{
    // Load the photo passed from the js method
}
catch (SecuritySandboxViolation Exception:e)
{       
    /*

    Transform the exception message which contains the host url from...

    "security error: Error #2048: Security sandbox violation: http://canvas-app.domain.com/SWF.swf cannot load data from security error: Error #2048: Security sandbox violation: http://facebook.tombstone.com/halloween-party-kit/GI_2011_09_TOMBSTONE_SPOOKIFY.swf cannot load data from https://s-hphotos-sjc1.fbcdn.net/229411_989116685126_5519474_47232933_4376850_n.jpg.22421_989116685126_5519474_47232933_4376850_n.jpg."

    to...

    https://s-hphotos-sjc1.fbcdn.net    

    */

    var host = e.getMessage();

    // *magical string transformation*

    Security.loadPolicyFile(host)
}

```