I have a Meteor app which lets users register through facebook oauth through meteor's accounts-facebook
package. I have set-up all the neccesary packages and UI, and deployed the app on Heroku (free plan) with an mLab database (sandbox). I have set up facebook app and authentication, and the login works fine for me. I have registered on the app through my facebook multiple times successfully.
However when one of my fellow developers who lives in Hong Kong (I am in India) tried to do the same, the app wouldn't register him, and the popup browser printed this error in the console after he gave permission to access his public profile -
DOMException: Blocked a frame with origin "https://myapp.herokuapp.com" from accessing cross-origin frame.
This error seemed to be coming from end_of_popup_response.js:18
in the oauth
package.
Is there any particular fixable reason to this error?
there is a policy in JavaScript named Same-origin. and by that policy if you want to access a frame, Protocol, Hostname and Port must be the same of your domain.
read this for some examples: SecurityError: Blocked a frame with origin from accessing a cross-origin frame
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With