Hi,
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="https://cdn.auth0.com/js/lock/11.3/lock.min.js"></script>
<script src="https://cdn.auth0.com/js/auth0/9.3/auth0.min.js"></script>
<script type="text/javascript">
var auth0 = new auth0.WebAuth({
domain: 'xxx.auth0.com',
clientID: 'xxx'
});
auth0.crossOriginVerification();
</script>
<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>
<style>
#dummy_div {
display: block;
position: absolute;
opacity: 0;
height: 0;
width: 0;
top: -99999;
}
</style>
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?