[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

I'm stumped - cross domain (type) issue

Posted on 2012-09-21
4
Medium Priority
?
355 Views
Last Modified: 2012-10-02
we've setup a test server to try and simulate a problem

assume 3 files
file a i have no control over and it sits in

127.0.0.1

it loads file b - file b loads file c
but i pass file c to file b via an absolute path - but instead of using 127.0.0.1 i'm using the domainname  - so let's say mydomain

(i'm simulating an environment here - so dont' want to change this)

what would be the cross domain scenario here.
assume for testing i'm puttin allow domain * on everything

it's the same machine

my file refuses to load.
blank friday moment.
0
Comment
Question by:blue-genie
  • 3
4 Comments
 
LVL 12

Expert Comment

by:Proactivation
ID: 38422209
The domain name needs to be exactly as it is in the crossdomain file.  True, localhost or mydomain may well resolve to 127.0.0.1, but Flash doesn't care - it must be the same, and the same for any sub-domains.
0
 
LVL 39

Author Comment

by:blue-genie
ID: 38422779
Hey proactivation - as mentioned, currrently all my allowDomains are set to wildcard * - I'm trying to find a solution to get flash to not care if the file says localhost or mydomain or 127.0.0.1
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 0 total points
ID: 38441000
what i've opted to is the follows:

domainA - which I have no control over will either use a machine name or IP to load a file on domainB

swf in domainA loads one of my files in domainB, my file then loads other files, connects to webservices, sockets etc - i've added an extra parameter in my config file, to pull the currently location, strip that out and set that as my "domain" - I make sure I load all my files into my security domain - and the workaround - faking the actual calling domain - works.

I have no doubt this is not the right way to go about it - but for the sake of this particular project - i'm happy with the result - and since there was nothing else forthcoming in ideas, i'm going to close this.

thanks.
0
 
LVL 39

Author Closing Comment

by:blue-genie
ID: 38453745
I wasn't getting any useful responses, so I created a work around which I've detailed.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses
Course of the Month18 days, 16 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question