Cross-domain policy file - Extra Life JSON Code Discussion & Sharing - Extra Life Community Hub Jump to content
bread_man

Cross-domain policy file

Recommended Posts

Allowing us to consume the data in JSON format is awesome. Now I can update the Extra Life Helper widget to consume that instead of parsing HTML pages which was not much fun and difficult to maintain as the website changed.

The Helper widget is a Flash application. It works fine when loaded into XSplit (a desktop application) and when I make my own executable wrapper around it. But many folks have wanted to run the Helper in their browser (so they can use it in OBS with the CLRBrowser plugin) or host on their website or blog as an embedded Flash application. When running in the context of the browser, the Helper can not request the JSON data because a cross-domain policy file is not in place at www.extra-life-org.Would it be possible to get a cross-domain policy file in place? The contents of the file are as simple as this:

<?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> 

And would be located at http://www.extra-life.org/crossdomain.xml

WebPlayer applications made with Unity3D will also not be able to request the data without that file in place.  

More from Adobe on this file can be found here:

http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

And example file in place can be found on my website here:

http://breadweb.net/crossdomain.xml

Thank you!!

 

 

Edited by bread_man

Share this post


Link to post
Share on other sites

Bumping this thread to see any of the Extra Life web devs are lurking and can let me know one way or another. Thanks!!

Share this post


Link to post
Share on other sites

Hey @bread_man - I just heard from the devs over at Donor Drive and they let me know that while they'd love to help, there isn't a way to provide you with what you're asking for without exposing some security risks to the EL site and their platform as a whole... sorry to be the one to deliver bad news!

  • Thanks 1

Share this post


Link to post
Share on other sites

Getting that confirmation was just what I needed to finally pull the trigger on removing Flash requirement from the Helper. I converted it to be a pure JavaScript application and it is available for download. :)
 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...