sahat/satellizer

Popup not closing in Firefox

yashvit opened this issue · 1 comments

The authenticate popup is not closing by itself on Firefox and Edge.

I commented out the try.. catch.. in the polling method and this is the error I get in JS Console:

Error: Permission denied to access property "protocol" on cross-origin object getFullUrlPath@http://localhost:60788/Scripts/satellizer.js:334:13 Popup</Popup.prototype.polling/</polling<@http://localhost:60788/Scripts/satellizer.js:567:47 notify/<@http://localhost:60788/Scripts/angular.js:14760:52 $eval@http://localhost:60788/Scripts/angular.js:15922:16 $digest@http://localhost:60788/Scripts/angular.js:15733:15 $apply@http://localhost:60788/Scripts/angular.js:16030:13 tick@http://localhost:60788/Scripts/angular.js:11265:25

It has got something to do with cross origin, but the origin in the popup and my main window are absolutely the same(port, ssl, everything)

Strangely this is working fine in chrome.

Something to do with my callback url being a ASP.NET API Controller. Changing it to a MVC Controller fixed the issue.