Skip navigation
cpDev
Currently Being Moderated

Why doesn't crossdomain.xml block my debugger?

Aug 2, 2012 10:35 PM

I deployed a cross domain policy file at sub1.mydomain.com that only allows access from sub2.mydomain.com. When I try to access sub1.mydomain.com from a SWF deployed at sub3.mydomain.com, sure enough, it doesn't work.

 

However, when I run a local SWF through my Flex bugger and try to access sub1.mydomain.com, there's no problem. It just works.

 
Replies
  • Currently Being Moderated
    Aug 2, 2012 10:53 PM   in reply to cpDev

    What domain is the SWF in the debugger using?  If it is using file:/// it has different security privileges.  You can change your project properties to deploy to and debug from a server.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 1:10 PM   in reply to cpDev

    When you run from file:// we use a special set of security rules (localTrusted sandbox) in order to simplify development setups for simple apps.  The theory is that, if you have downloaded a SWF to your computer and run it from the local file system, you are trusting it.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points