Auth0 Home Blog Docs

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 (

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?