jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.12k stars 269 forks source link

No errors in debug logs, but application not starting #162

Closed izaacdb closed 7 years ago

izaacdb commented 9 years ago

I'm developing an angularjs application that needs to make requests to our Java middleware, which has to be located on a separate server. In order to facilitate this on IE9 I am using your xdomain scripts.

On our frontend application we have this:

<!DOCTYPE html>
<html>
<head lang="en">
    <!--[if lte IE 9]>
    <script src="http://cdn.rawgit.com/jpillora/xdomain/0.7.3/dist/xdomain.min.js"
            debug="true"
            slave="http://middleware.integration.com/proxy.html"></script>
    <![endif]-->

    <meta charset="UTF-8">
    <meta name=viewport content="width=device-width, initial-scale=1, user-scalable=0">
    <title></title>
    <!-- compiled CSS --><% styles.forEach( function ( file ) { %>
    <link rel="stylesheet" type="text/css" href="<%= file %>" /><% }); %>

</head>
<body>

    <div id="avios-explorer">
    </div>

    <!-- compiled JavaScript --><% scripts.forEach( function ( file ) { %>
    <script type="text/javascript" src="<%= file %>"></script><% }); %>

</body>
</html>

and in our proxy.html file on the middleware server we have this:

<!DOCTYPE HTML>
<script src="http://cdn.rawgit.com/jpillora/xdomain/0.7.3/dist/xdomain.min.js"
        debug="true"
        master="*"></script>

I've attached my debug log. Am I attempting this correctly?

debuglog