Will of cross domain policy file work with http - & gt; HTTPS

I received the error message following 'security to access the url error' even though I've already placed the policy file on the server that hosts the service. Is it because the site of my Flex uses the HTTP protocol and the data server using the HTTPS protocol. Is there a way around this problem. Thank you!

Hi arnoldchang,

in the first place, I quite agree with you that the crossdomain.xml thing is annoying.

I Don t think you use a socket policy file if you want to connect to a Web service, but you may need to change the crossdomain.xml.

Please give a look to this LINK

or for German users (this LINK)

an example of a modifed crossdomain.xml looks like this:




Best regards
Kcell

Tags: Flex

Similar Questions

  • load the XML file field Companion without cross-domain policy file

    Hello.

    Assuming that there are two areas companions on the same server: /public_html/domain1.com and /public_html/domain2.com

    I'm trying to load the XML from domain2.com in domain1.com without using a cross-domain policy file (since it does not work with xml files in my case).

    So the idea is to use a php file to load XML and read it back to Flash.

    I found an interesting scripts that seems to do the job, but unfortunately I can't make it work. In my opinion, there is somewhere with AS3 part problem. Please take a look.

    Here's the AS3/PHP scripts:

    AS3 (.swf in www.domain1.com):

    location of the xml file you want to load, full http address

    var xmlLoc:String = " " http://www.Domain2.com/MyFile.XML ";

    location of the php xml grabber, regarding the .swf

    var phpLoc:String = "loadXML.php";

    var xml;

    var loader: URLLoader = new URLLoader();

    var request: URLRequest = new URLRequest (phpLoc + "? location =" + escape (xmlLoc));

    loader.addEventListener (Event.COMPLETE, onXMLLoaded);

    loader.addEventListener (IOErrorEvent.IO_ERROR, onIOErrorHandler);

    Loader.Load (request);

    function onIOErrorHandler(e:IOErrorEvent):void {}

    trace ("there was an error with the xml file" + e);

    }

    function onXMLLoaded(e:Event):void {}

    trace ("RSS feed has been loaded");

    XML = new XML (loader.data);

    / / string value, because it is passed from php as object

    XML = XML (xml.toString ());

    xml_txt.text = xml;

    }

    PHP (loadXML.php to www.domain1.com):

    <? PHP

    Header ("Content-type: text/xml");

    $location = "";

    {if (isset($_GET["location"]))}

    $location = $_GET ['location'];

    $location = urldecode ($location);

    }

    $xml_string = getData ($location);

    return the url encoded Flash vars

    echo $xml_string;

    Loops of a URL and returns

    function getData ($query) {}

    / / create resource curl

    $ch = function curl_init();

    / / cURL url

    curl_setopt ($ch, CURLOPT_URL, $query);

    Set some required params for the use of CURL

    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);

    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

    Execute the loop works and decode the returned JSON data

    $result = curl_exec;

    return $result;

    / / Close the curl resource to free up system resources

    curl_close ($ch);

    }

    ? >

    I think you might be right about / permissions on the server for php settings. Unfortunately I'm not allowed to adjust.

    So I wrote my own script - this time I used the path instead of the http address of the XML file.  It works fine in my case.

    Here it is:

    XML file on domain2.com:

    SWF on domain1.com:

    var imagesXML:XML;

    var variables: URLVariables = new URLVariables();

    var varURL:URLRequest = new URLRequest ("MyPHPfile.php");

    varURL.method = URLRequestMethod.POST;

    variable = varURL.data;

    var MyLoader:URLLoader = new URLLoader;

    MyLoader.dataFormat = pouvez;

    MyLoader.addEventListener (Event.COMPLETE, XMLDone);

    MyLoader.load (varURL);

    function XMLDone(event:Event):void {}

    var imported_XML:Object = event.target.data.imported_XML;

    imagesXML = new XML (imported_XML);

    MyTextfield_1.text = imagesXML;

    MyTextfield_2.text = imagesXML.image [0] .attribute ("thumbPath");  reference sample to assign "thumbPath' of the first item

    }

    php on domain1.comfile:

    <>

    $xml_file = simplexml_load_file('.. /.. / /galleries/gallery_1/MyXMLfile.xmldomain2.com');  Directory of XML file on the same server

    $imported_XML = $xml_file-> asXML();

    Print "imported_XML =". $imported_XML;

    ?>

    Concerning

    PS: for those who have read the foregoing: the first and the second script works but you need to test which one is best for your situation. The first script will work also between two domains located on different servers. No. cross necessary domain policy file.

  • cross-domain-policy does not work

    I get an error message:

    Error #2048: security sandbox violation: http://www.m.com/p/bin-debug/main.swf Cannot load data from http://rateservice.m.com/rateservice.svc/ .

    My cross-domain file to http://rateservice.m.com is :

    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="*.m.com"/>
    </cross-domain-policy>

    using m as alias

    Please tell us how do I solve this problem, as it should work. I did a test of firbug and the cross domain is to be found by the eyelashes of firebug

    1. There is no closing tag:

    http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"/>
    
  • editing the .htaccess file allowed for 301 redirects? (I'm working with https)

    I'm trying to use HTTPS with my sites. Especially brightdentistry.co for the SEO benefits.

    What I understand, it's that I have to set up a 301 redirect in .htaccess file and I need to pass all versions of possible (brightdentistry.co or www.brightdentistry.co etc...) domain address to https://brightdentistry.co

    How can I work with https correctly?

    Thank you in advance!

    Thanks to J-26, when you use the host of dream and Adobe Muse SSL/Https make a .htaccess file with this code:

    RewriteEngine on

    RewriteCond % {HTTPS}

    RewriteRule (. *) https://%{HTTP_HOST} {REQUEST_URI} %

    Problem solved!

  • Cross domain AJAX calls work on browser, but not on ripple/Simulator

    The question I faced is I call of cross-domain ajax using jQuery for the facebook site using an access token. This call works on Chrome and Firefox, but fails on the Simulator and ripple. I have setup my file config.xml with the proper access flags.

    My related code is below (cut).

    var fbData = { access_token: _fbToken };
    var fbUrl = "https://graph.facebook.com/me";
    
    $.getJSON(fbUrl,fbData, function(data){
       // Some code here
    });
    

    I also tried using the extended method of $. ajax() and JSONP specifying the data type, but it is the same problem.

    I looked in the Inspector on the drive and I see that no host header is set, but Chrome or Firefox will automatically fill "Host: graph.facebook.com" in the request header. I wonder if this is the problem?

    Demand is just stuck as 'pending' in the network tab.

    JSONP requests in jQuery, you cannot alter the headers (so not in available beforeSend setHeader).

    I don't have the chance to test it on the device but wonder if other people have faced this problem.

    Well, for those who falls on this issue, the problem does not occur on the device (AFAIK). I ran on a device OS6 and things were good to go.

  • using modules in json (or enabling cross domain ajax) files

    I need to display a list of web applications on a different domain. (Both are catalyst for activity sites).

    I seem to have two options:

    JSONP

    I jsonp working on a json file coded hardcoded, but as soon as I tried to put the {module_webapps} in, I realized that BC does not have labels outside of the html files.

    This is the json file, I want to get:

    () houseLandCallback

    {"packages": []}

    {module_webapps, 7307, c, 48029}

    ]}

    );

    CROSS DOMAIN AJAX

    Is it possible to allow both sites to BC to share data?

    I know that the whole point of British Colombia is it have a solid server that you cannot change.

    Not at the moment no. You can run out of FEED.

    Liquid and BC. Is then on the horizon that has more support JSON, etc., while JSOP is not at launch, if all goes well, it can be added down the line.

  • When will an update of lightning that works with Thunderbird v31.0 beta come out?

    I used Thunderbird beta v 30 with 3.2b1 of lightning and it was working fine. V31 Thunderbird has been released and updated automatically. Add-ons - are set to "auto update". All calendar is now grayed out, and nothing works. I searched downloads of lightning and concluded that Lightning 3.2b1 is the most recent version was available, and it's lightning 3.2b1 States for "Thunderbird 30.0 and later. Obviously, lightning 3.2b1 does not work with Thunderbird v31.

    Two things:
    1. I recommend that updates of lightning will come out before the publication of beta of Thunderbird updates so that your testers who use the Lightning extension have the capacity they had before updates Thunderbird, and
    2. a) be a notice sent with beta versions updated to Thunderbird, that States will they interface properly with the currently installed version of lightning, and/or b) the update should not automatically update if it detects an add-on installed lightning with which it is incompatible and require the user to decide if the user wants to proceed with the update and lose functionality.

    According to this site, you'll need lightning 3.3b1, which you can find here:

    FTP://FTP.Mozilla.org/pub/calendar/lightning/candidates/3.3B1-candidates/

  • I can't read the files Works with Word 2000.

    I've been using Microsoft Word 2000 so I removed my program works, now I can't open the files to work. I can't restore works.  A message says that I need a works332.cnv conversion program.  Download the converter from Microsoft?

    Have you looked at?

    http://Office.Microsoft.com/en-us/Office-2000-Resource-Kit/working-with-Word-2000-text-converters-and-graphics-filters-HA001138192.aspx

  • VOD works with HTTP but not RTMP

    I have a few FLV videos that I can't work with RTMP streaming using VOD app and player of strobe.  Locally, they play fine in VLC media player.  It will also play properly in the flash drive so accessible with an HTTP request.  When I try to listen to using the RTMP protocol, reading seems to be normal and I can get to anywhere in the video.  However, playback will stop randomly at different points in the middle of the video.  If the player to debug, I see that NetStreamTimeTrait becomes NetStreamCodes.NETSTREAM_PLAY_COMPLETE.

    Can someone tell me how can I solve the FLV file, or what steps I can take to understand why playback will stop at the beginning?

    These videos were captured using the Wowza DVR app, and I used a HDS capture utility to recompose the video in a FLV.  The resulting FLV file was missing the duration metadata, so I used "yamdi" to inject the missing metadata.  I also tried "flvfix" utility without effect.

    Extension .mp4 as renaming does not work... You will have a tool to convert your FLV to mp4 videos.

  • Will be Canon 5 d Mark III Raw files work with Lightroom 3

    I just tried to download the Raw files from a Canon 5 d Mark III to Lightroom 3.  The file have not been recognized.  According to me, there were a few problems update, but my Lightroom 3 is updated.  I need Lightroom 4?  I need to know that I have a meeting tomorrow and will go back to my Mrk II if I can't get an update of Lightroom 3 emergency.

    Title of the message was edited by: Brett N

    The latest version of LR3 has been updated in last December, and the 5D.3 is more recent than that, then Yes you need LR4.

    You can download the trial LR4 (or just the update 4.1 www.adobe.come/downloads/updates/ LR) and have 30 days before you need to purchase and enter a serial number.

    The other choice is to use the 7.1 to DNG Converter that knows your new camera, but allows the converted DNG open in LR3.

  • I have old pagemaker files that show only as executable files (exec). They contain files in the format.  Can I open them in DW in a way that will allow me to see and work with the formatting?

    Is this possible?

    Lol it is not possible.

    And you already asked this question a few days ago. Please read your previous post.

  • JavaScript error when using ExternalInterface.addCallback("IsStatic",IsStatic) with cross-domain swf file

    How can I use ExternalInterface.addCallback("IsStatic",IsStatic) when using javascript server access (html) of server B (swf)? coz it showing error?

    Server A
    192.168.0.10/xxx/example.html
    ===========
    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    ID = "MGSInsurances1" width = "960" height = "600".
    codebase =" http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" > "
    "" < param name = "movie" value = " http://192.168.0.22/MGS/flex/MGSInsurances1.swf" / >
    < param name = "quality" value = "high" / >
    < param name = "bgcolor" value = "#869ca 7" / >
    < param name = "allowScriptAccess" value = "always" / >
    "" < embed src = " http://192.168.0.22/MGS/flex/MGSInsurances1.swf" quality = "high" bgcolor = "# ca 869, 7.
    width = "960" height = "600" name = "MGSInsurances1" align = "middle".
    play = "true".
    Loop = "false".
    quality = "high".
    allowScriptAccess = "always".
    Type = "application/x-shockwave-flash".
    pluginspage =" http://www.adobe.com/go/getflashplayer_fr" > "
    < / embed >
    < / object >
    < script language = "javascript" >
    window. MGSInsurances1 = document.getElementById('MGSInsurances1');
    < /script >

    Server B
    192.168.0.22/mgs/Flex/MGSInsurances1.swf
    ==================

    Security.allowDomain("*");

    If (ExternalInterface.available)
    {
    ExternalInterface.addCallback("IsStatic",IsStatic) ("onchange", onchange);
    ExternalInterface.addCallback("IsStatic",IsStatic) ("datachange", datachange);
    }

    but javascript Error shows "Unknown name", how can I solve this problem? urgent! Anyone know this?

    I solved it! because I did not restart my server again! Again not error! Sorry to annoy everyone.

  • Try to make a php file work with my email form

    Hello

    Going a little crazy trying to link my php with my HTML file and actually make it work.

    He (php file) continues to come up with a syntax error on line 37 - code indicators may not work etc etc but there is no error in what I see - can anyone else point out the course for me? This leads me in the corners!

    my code:

    <? PHP

    / * Subject and Email Variables * /.

    $emailSubject = "form";
    $webMaster = ' [email protected] ';

    / * Collection of data Variables * /.

    $nameField = $_POST ['name'];
    $addressField = $_POST ['address'];
    $telephone1Field = $_POST ['telephone1"];
    $telephone2Field = $_POST ['telephone2"];
    $emailField = $_POST ['email'];
    $name2Field = $_POST ['name2'];
    $ageField = $_POST ['age'];
    $dobField = $_POST ['dob'];
    $commsField = $_POST ["comms"];
    $messageField = $_POST ['message'];

    $body = < < < NEM
    < br > < hr > < br >
    Name: $name < br >
    Address: $address < br >
    Phone (day): $telephone1 < br >
    (Mobile) phone: $telephone2 < br >
    E-mail: $email < br >
    Childs name: $name2 < br >
    Starting age: $age < br >
    Childs Birth Date: < br > $dob
    Favorite form of communication: $comms < br >
    Message: $message < br >
    NEM;

    $headers = "from: $email\r\n";
    $headers. = "content-type: text/html\r\n";
    $success = email {$webMaster, $emailSubject, $body, $headers};

    / * Results made in the HTML form * /.

    $theResults = < < < NEM
    < html >
    < head >
    < title > < /title > Xxx
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 ">"
    < style type = "text/css" >
    <!--
    {body
    background-color: #f1f1f1;
    do-family: Verdana, Arial, Helvetica, without serif.
    do-size: 12px;
    make-style: normal;
    line-height: normal;
    make-weight: normal;
    Color: #666666;
    text-decoration: none;
    }
    ->
    < / style >
    < / head >

    < div >
    < div align = "left" > thanks for your message, your email will be answered very soon! < / div >
    < / div >
    < / body >
    < / html >
    NEM;
    echo "$theResults";

    ? >

    Line 37 is the following:

    $success = email {$webMaster, $emailSubject, $body, $headers};

    It should be this:

    $success = mail ($webMaster, $emailSubject, $body, $headers);

    Also the From header: is: $headers = "From: $email\r\n"; but I do not see the variable defined for $email

    Also, you need to know about electronic fuel injection. Someone could inject your headers and add additional BCC: addresses to send emails to multiple recipients undisclosed through your mail script. You would use your script to turn your server in a host for spam! Sanitize your fields to prevent injection attacks! Safety must be the priority of the followed firt of functionality. If it's not safe, it should not work

  • . Alias files work with vi running in the development environment?

    If I have a vi that uses the NSV or front binding to NSV by using the project library names will be they resolved since a .alias file run from the OF?

    NEITHER Documentation mentions how it works for the casting of the exe.

    OK now I can answer my own question... Yes they do.  The alias file is located adjancent to the project file and inherits the name of the project.

    Everything works as expected.

  • How to let *.amd file work with active static selector

    Well, I try to use different background for different visualstyle pattern. but I don't know how to make it work.

    my bottom paint is:

    ImagePaintDefinition {
        id: backgroundPaint
        imageSource: "asset:///Background.amd"
        repeatPattern: RepeatPattern.XY
    }
    

    Background.AMD is:

    #RimCascadesAssetMetaData version=1.0
    source: "Background.png"
    repeatable: true
    

    If I use the structure of file like this:

    -VisualStyle.bright

    | - Background.png

    -VisualStyle.dark

    | - Background.png

    -Background.amd

    the error message is:

    Image not found: "/ apps/***/native/assets//Background.png".

    or if I use the structure of file like this:

    -VisualStyle.bright

    | - Background.png

    | - Background.amd

    -VisualStyle.dark

    | - Background.png

    | - Background.amd

    the error message is:

    "AssetMetaDataParser: file not found: /apps/***/native/assets//Background.amd".

    I'm so confused. could someone help me with this problem? Thank you very much!

    Thank you very much for your advice!

    It looks like to caused by my Dev Alpha A, which is always the version 10.0.0 rather than the new version 10.0.1. Because the second structure works well on the Q10 Simulator which has version 10.0.1.

    Now, I try to use the following structure. He has passed the test on my Dev Alpha A, and I'm about to test it on the simulator of Q10.

    | - Background.png
    | - Background.amd

    -VisualStyle.bright
    | - Background.png
    | - Background.amd
    -VisualStyle.dark
    | - Background.png
    | - Background.amd

Maybe you are looking for