Cross-Origin Verification Page "Invalid target origin"


I am working on the Cross-Origin Authentication. I don’t use the Custom Domain so I create a Cross-Origin Verification Page (Cross-Origin Authentication).

I have added the following code to index.html in my application.

RamSoft Login
<!-- App Configuration -->
<script src="resources/app.config.js"></script>    
<script src=""></script>
<script src=""></script>
<script type="text/javascript">
    var auth0 = new auth0.WebAuth({
      domain: '',          
      clientID: 'xxx'
<script type="text/javascript" src="resources/js/rsauth0.js"></script>
<!-- The line below must be kept intact for Sencha Cmd to build your application -->
<script id="microloader" data-app="74e0f9f9-ddd7-49ee-9dcf-9ce8aad2d512" type="text/javascript" src="bootstrap.js"></script>
    #dummy_div {
        display: block;
        position: absolute;
        opacity: 0;
        height: 0;
        width: 0;
        top: -99999;

But when I run my application and login. It give me the error : Failed to execute ‘postMessage’ on ‘Window’: Invalid target origin ‘undefined’

Please advise what do I missed to make it work?

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.