Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flex 3 local debugging, CF 8 with Remoting, crossdomain policy

New Here ,
Apr 20, 2009 Apr 20, 2009

I have CF8 with Flash Remoting on a remote Web server and a master-only meta-policy in crossdomain.xml. I want to debug Flex 3 Web apps locally that use the remote CF8 flex gateway, but I don't currently have a way to identify my local machine using the <allow-access-from domain=""...> in the crossdomain policy. I was using the allow domain="*", but prefer to switch to a secure practice.

Is there a way to format my machine's MAC address in the crossdomain.xml?

Is CF 8 checking the policy at the gateway the same way Flash player checks the policy when a swf file is requested?

How do developers get around this? Thanks.

TOPICS
Flash integration
2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 30, 2009 Apr 30, 2009

Does your local machine use a static IP address when connecting to the Internet? If so, you could simply add the IP into your cross domain policy file.

If you lack a static IP (most ISPs will provide one for a nominal charge), you would still be getting an IP address assigned dynamically when you connect to the Net via your ISP. It's a pain but you could alter your cross domain file as needed to update the IP address from which you connect.

I haven't seen a case where you can use a MAC address in the cross domain.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 08, 2009 May 08, 2009

The cross domain file refers specifically to which URL you're typing into the browser to access the content.  So here are some examples:

1) Access the page via "http://localhost/xxxxx" - use <allow-access-from domain="localhost" />

2) Access the page via "http://127.0.0.1/xxxxx" - use <allow-access-from domain="127.0.0.1" />

3) Access he page via "http://localhost:8500/xxxxx" =  use <allow-access-from domain="127.0.0.1" to-ports="8500" />

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 08, 2009 May 08, 2009

thank you for your responses. I just tried entering my laptop's current ip address that I got from http://www.whatismyip.com.

Here is the policy that lives on the remote server where CF is.

<cross-domain-policy><site-control permitted-cross-domain-policies="master-only" /><allow-access-from domain="71.224.69.9" /></cross-domain-policy>

When I launch the swf from its local directory on my laptop having this ip address, it does not connect with the CF gateway. I wonder if my ISP Comcast is blocking something if it thinks I'm trying to 'host' the swf from my laptop, even though I am not running a Web server on this laptop.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 08, 2009 May 08, 2009

Can you provide the following information:

1) A copy of your crossdomain file.

2) The URL you are using to load the flex application in your browser.

3) Confirm the url you use to test your flex2gateway (ie. if you load up "http://localhost/flex2gateway/" you should see a blank page... confirm this is working).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 08, 2009 May 08, 2009
LATEST

1. Here is the crossdomain.xml file.

2. The url is file:///C:/flex2btb/exercises/ClientProjectName/bin-release/

3. Flex gateway url is http://www.rosaceatraining.com/flex2gateway

When I run the swf from any htdocs subdirectory on http://www.rosaceatraining.com/xxxx, it runs fine. This is not my question.

I debug Flex apps from my laptop where FlexBuilder 3 is installed. If I want to debug swfs on my laptop that connect with CF at http://www.rosaceatraining.com/flex2gateway, it doesn't work unless the crossdomain.xml policy on http://rosaceatraining.com includes <allow-access-from domain="*" />.

The easy solution for me is install CF on the laptop and configure exactly as it is on rosaceatraining.com. This must be the most common practice.

Sometimes when I'm tweaking my app, I compile every 15 seconds until it is just right. It would be easier to avoid having SFTP each one to the server to test it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources