Crossdomain.xml Error 2048
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies error #2048 flash of this site About Us Learn more about Stack Overflow the company
Flash Security Error 2048
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users error #2048 flash security settings Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a error #2048 chrome minute: Sign up Flex CrossDomain.xml Error - Channel.Security.Error error Error #2048 up vote 0 down vote favorite I am struggling with getting a Flex SWF (which is embedded in JSP) to access remote data (from another domain). I have a crossdomain.xml (which is embedded in my SWF). Its content is as follows: domain="*" headers="*"/> Flash Player Security Error 2048
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your vivint 731 socket reported a security error error #2048 peersError: You don't have JavaScript enabled. This tool uses fight my monster error 2048 JavaScript and much of it will not work correctly without it enabled. Please
Error 2048 Watchespn
turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type http://stackoverflow.com/questions/5298984/flex-crossdomain-xml-error-channel-security-error-error-error-2048 your message and try again. More discussions in ActionScript 3 All CommunitiesAdobe Animate CC - HomeActionScript 3 1 Reply Latest reply on May 13, 2009 11:55 AM by clbeech Cross domain scripting: error #2048 Bezanaire May 13, 2009 6:56 AM Hi,This is my first https://forums.adobe.com/thread/432290 entry in this forum but I already found a lot of answers by browsing it. However, altough many references seem to solve the problem I'm hurting on, it doesn't seem to work for me...Now, here's the case:I made a flash web site that will be hosted on an external web server (let's call it server «www.external.com»).My flash needs to get some info from my internal server (let's call it «www.internal.com»).On «www.internal.com», I don't have access to the root, only to the folder «myfolder» so my website reads like this: «www.internal.com/myfolder».Being aware of some sandbox security issues, I made a crossdomain.xml file and uploaded it to «www.internal.com/myfolder/crossdomain.xml» to provide acces to «www.internal.com/myfolder» from «www.external.com» wich is the following:
Error #2048 -- At a loss! If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to http://board.flashkit.com/board/showthread.php?775361-Error-2048-At-a-loss! register before you can post: click the register link above to proceed. To http://krasimirtsonev.com/blog/article/Flash-sockets-and-cross-domain-policy-file-nodejs start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 15 of 15 Thread: Error #2048 -- At a loss! Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded error 2048 Mode 08-21-2008,01:26 AM #1 erico564 View Profile View Forum Posts Visit Homepage Member Join Date Feb 2002 Posts 65 Error #2048 -- At a loss! I've got some strange stuff going on. I have a SWF that is hosted on server A. I have a php file on server B that processes forms. My SWF sends form information to server B and expects to error #2048 flash get a set of variables returned (form processed successfully or not). The SWF is built in AS3. The code is written like this: Code: // SEND FORM INFO //-- collect variables var variables:URLVariables = new URLVariables(); variables.email = txtEmail.text; //-- set up request for URL var myRequest:URLRequest = new URLRequest(); myRequest.url = "https://services.processingserver.com/postdata/"; myRequest.method = URLRequestMethod.POST; myRequest.data = variables; //-- process loader var myLoader:URLLoader = new URLLoader(); //myLoader.dataFormat = URLLoaderDataFormat.VARIABLES; try { myLoader.load(myRequest); } catch (error:ArgumentError) { trace("An ArgumentError has occurred."); txtPrompt.text = "SERVER ARGUMENT ERROR"; } catch (error:SecurityError) { trace("A SecurityError has occurred."); txtPrompt.text = "SERVER SECURITY ERROR"; } myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS,httpStatusHandler); myLoader.addEventListener(IOErrorEvent.IO_ERROR,errorHandler); myLoader.addEventListener(Event.OPEN, openHandler); myLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler); myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); myLoader.addEventListener(Event.COMPLETE,completeHandler); .... function securityErrorHandler(e:SecurityErrorEvent):void { txtPrompt.text = "SERVER SECURITY ERROR - "+e.text; } It works fine when I test it from a local file. However, when I post the form SWF to the live server, it returns an Error #2048, triggered by the securityErrorHandler function. The remote server has a crossdomain.xml file, and the server that the SWF is posted on has the file too. This is the code in the xml file: Code: Before to start making changes I had to setup the project and make it work on my local machine. I spend few days doing this. At the end I successfully compile the flex application and made the necessary corrections. I uploaded the new swf file and of course it didn't work. I got the following error: SecurityError: 0, Error #2048: Security sandbox violation: myfile.swf cannot load data from anotherhost.com:8102 It's clear what is going on. Maybe there is no crossdomain.xml file. I checked the server, but there was such a file and it was accessible viaanotherhost.com/crossdomain.xmlThen I read the error carefully and saw that the swf file is making a request to specific port. A quick check of the server's configugration file shows me that there was something on port 80 and nodejs script listening on port 8102. Now, it's getting interesting. Of course I thought that if I make anotherhost.com:8102/crossdomain.xml responds with the proper policy everything should be ok. I started digging in the node's code and I found out that this is actually a small socket server. So, It seems that I can't just map route crossdomain.xml. Beside that I found the following code:var netserver = net.createServer(function(socket){ socket.addListener("error",function(err){ socket.end && socket.end() || socket.destroy && socket.destroy(); }); var xml = '\n\n\n'; xml += '\n'; xml += '\n'; xml += '\n'; if(socket && socket.readyState == 'open'){ socket.write(xml); socket.end(); } }); netserver.addListener("error",function(err){}); netserver.listen(7843, '0.0.0.0');Here was the WTF moment. I had a socket server which is running on 8102, but that script also run another small server which runs on port 7843. I searched the whole repository for 7843 and didn't find anything. Then I asked one of my colleagues and he explained everything. The flash player first requires crossdomain.