Results 1 to 4 of 4

Thread: Can't set crossdomain.xml to allow access to connectioncounts from javascript

  1. #1

    Default Can't set crossdomain.xml to allow access to connectioncounts from javascript

    Dear All,

    I'm trying to create a javascript code to display connection count. The only problem is that the web server won't be on the same server than the Wowza Server.
    So i'm facing the crossdomain policy problem.

    Here is my javascript code :

    	<script type="text/javascript">
    		var xmlhttp = new XMLHttpRequest();
          "GET", "", false);
                    xmlhttp.setRequestHeader('Content-Type', 'text/xml');
    		xmlDoc = xmlhttp.responseXML;
    I'm getting a crossdomain error

    and here is my conf/crossdomain.xml wich seems to be good :

    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "">
            <allow-access-from domain="*" secure="false"/>
            <site-control permitted-cross-domain-policies="all"/>
            <allow-http-request-headers-from domain="*" headers="*"/>
    Could somebody help me?

    Best regards


  2. #2



    In your VHost.xml you need to add the crossdomain HTTP Provider to port 8086

    If you add


    As the first entry in the port 8086 HTTP Provider section , restart Wowza it should then work.


  3. #3


    Id did not try your solution (but it seems less complex) but i have found another wich is available in another thread :

    Thank you for your help.

    Best regards


  4. Default

    Crossdomain.xml is for flash clients, and AFAIK, none of the current browsers use a similar crossdomain policy system.

    Some of the more modern browsers support CORS, so if wowza returns Access-Control-Allow-Origin headers on the response from the connection count service (not sure if it does or not), those browsers should be able to consume the XML response over an xhr request.

    For older browsers, you'd need to refactor the connection count service so you can use JSONP, or you could use a proxy application that resides in the same domain as the page that makes the xhr request.

    There's good info on the topic here:

Similar Threads

  1. HTML5 (Javascript) access to Shared Objects
    By dougwolf in forum General Forum
    Replies: 10
    Last Post: 05-08-2013, 02:55 PM
  2. crossdomain.xml not accessable
    By INVINTUS in forum General Forum
    Replies: 0
    Last Post: 01-10-2013, 12:33 PM
  3. Crossdomain policy issue. Crossdomain.xml file doesn't reject connections
    By Andrey3k in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 1
    Last Post: 10-08-2012, 06:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts