Sep 13, 2007
Why am I getting Security Sandbox Violations in the Flash IDE when running the sample applications or my own applications?
SWX RPC lets you to make cross-domain data calls (you can turn this off by setting the
allowDomain option in the SWX PHP configuration file at php/swx_config.php to false). This means, for example. that you can have a SWF running on your development server or on your shared host somewhere and you can still consume the SWX RPC services (APIs) on the Public SWX Gateway on swxformat.org.
The Flash IDE, however, will display a Security Sandbox Violation when you run SWX applications in the IDE. This is because applications that run in the IDE use the file:// protocol as opposed to http://. Rest assured that your applications will work correctly when tested from a web server using the http:// protocol.
In short, you can safely ignore this warning.
For a longer explanation, read on.
The way SWX RPC enables cross-domain data exchange is by writing an
allowDomain statement to the exact URL of the SWF that called it (your application) in the SWX data SWF that it sends back. The SWX ActionScript Library sends this URL in the SWX RPC call for you.
If you are using the native method via loadMovie(), you need to send the value of
_url in a parameter called
url in your SWX RPC call manually. Alternatively, when using the native method, if you don't send a url parameter, you can specifically allowDomain the loaded SWX data SWF from the main application and it, in turn, it will allowDomain its parent (your application) if it doesn't receive the url. This second method is discouraged, however, as the SWX data SWF should not require access to your application (if only does so to allow your application access to itself by calling allowDomain on
_parent) and a fake SWX data SWF from an untrusted SWX RPC gateway could possibly access data and/or alter your main application when using this method.
To summarize, you can ignore this warning and you should either send a url parameter when using the native method via
loadMovie() in SWX RPC or, even simpler, use the SWX ActionScript Library when your applications need to access data across domains.
christina ricci prozac nation
imitrex nasal spray
cialis compare levitra
phentermine no prescription
doxazosin 4 mg
paxil on line
online pharmacy tramadol
herbal hoodia phentermine
buy carisoprodol cheap online
buy cialis link
generic levitra online
furosemide and digoxin
lipitor side effects