Loading
  Password:
  Lost password?  
LogoutLOGOUT
Join as a MemberJoin as a Member
 
FlashMove Live Support



Go Back   FlashMove Forums > Development > Flash 8

ReplyREPLY THREAD
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-06-2006, 04:34 PM
iti iti is offline
Registered User
 
Join Date: Dec 2006
Posts: 6
iti is on a distinguished road
Question cross-domain security problem

Hello,
I have a problem with cross-domain.
my swf file resides on one server but in order to show a part of it I need authorisation from another server (domain).
here is the code I am using in the swf:

System.security.allowDomain("www.seconddomain.com" );
var lv = new LoadVars();
lv._parent = this;
lv.onData = function(inString){
this._parent.textS.text = inString;
this._parent.text2.text = siteAddress;
}
idc = "638da98b-979f-48c4-bd67-a8bd10d13dcd";//id
//id - this I get from querystring.

var siteAddress:String ="http://www.seconddomain.com/Proxy/?id="+idc;
lv.load(siteAddress);


from the proxy I get false or true. this I then test and do what neccessary.
my problem: this works perfectly on the same domain where the proxy is, but not on another remote server/domain. flash does not give me the false/true from the aspx test page. any idea how I can solve this??
  #2  
Old 12-06-2006, 05:46 PM
saumya's Avatar
saumya saumya is offline
Super Moderator
 
Join Date: Oct 2004
Location: India
Posts: 2,207
saumya is on a distinguished road
hi iti,
this is because you need a cross domain policy file.
Actually you have solved one part of the problem.The other part is, you have to place a cross domain policy file in the root of the domain( from which you need your swf file ).This is basically a xml file specifying which are the domains, who can get the swf file from this particular domain.

http://www.moock.org/asdg/technotes/...inPolicyFiles/

http://www.5etdemi.com/blog/archives...-policy-files/

__________________
  #3  
Old 12-07-2006, 03:01 PM
iti iti is offline
Registered User
 
Join Date: Dec 2006
Posts: 6
iti is on a distinguished road
Thanks Saumya,
I will try that. do I have to restart the webserver for this? and do I have to reference this file somewhere in my swf file? In other words, how does the swf knows it is now allowed to get info from the other website? does it check to start with the crossdomain.xml?
thanks for replying
Iti
  #4  
Old 12-07-2006, 03:54 PM
saumya's Avatar
saumya saumya is offline
Super Moderator
 
Join Date: Oct 2004
Location: India
Posts: 2,207
saumya is on a distinguished road
you are right iti.
You just have to re visit the page from a fresh new browser. Everything else flash takes care of.
__________________
  #5  
Old 12-07-2006, 10:20 PM
iti iti is offline
Registered User
 
Join Date: Dec 2006
Posts: 6
iti is on a distinguished road
Thumbs down

Well I tried what you suggested and no luck. Could it be something to do with the firewall of the server?
  #6  
Old 12-12-2006, 10:14 PM
iti iti is offline
Registered User
 
Join Date: Dec 2006
Posts: 6
iti is on a distinguished road
lovely Great - it works!!

The cross domain worked!!!. The problem was on the ISA server. Thanks Saumya, you are a great help
  #7  
Old 12-13-2006, 05:13 AM
saumya's Avatar
saumya saumya is offline
Super Moderator
 
Join Date: Oct 2004
Location: India
Posts: 2,207
saumya is on a distinguished road
Guy

thank you for your kind words.
__________________


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Domain Issues (JS) jwaldrip Flash 8 0 11-01-2006 07:49 PM
FlashMove recent tussle with domain issue FlashMove Members Cafe 6 03-28-2005 06:31 PM
Cross Domain Content Loading with loadPolicyFile whitenoiseie Actionscript 2.0 2 08-20-2004 06:32 PM
Cross Domain Policy File dv8 Flash MX 2004 2 09-11-2003 03:16 PM
security problem myrmar Flash 5 Actionscript 3 09-08-2001 01:33 AM



All times are GMT. The time now is 08:04 PM.




Powered by vBulletin version 3.5