Page 1 of 1

Permission denied to access property "__v_isRef" on cross-origin object

Posted: 20 Jul 2022, 23:09
by dbuckman
Hi,
First post. Hopefully someone can find that I am doing something wrong. I am using firebase authentication and firestore.
When I sign in the first time using signInWithPopup everythings works as expected.
When I sign out, then try and sign back in using signInWithPopup I get an error

Code: Select all

DOMException: Permission denied to access property "__v_isRef" on cross-origin object subscribe.ts:239:20
    sendOne subscribe.ts:239
    (Async: promise callback)
If I choose to use signInWithEmailAndPassword everything works. I can sign in, sign out, and then sign back in again.

Here is the code. In this version I have a bunch of then's strung together to see if it is a timing issue. I didn't help

Code: Select all

googleSignIn() {
  this.$toast.add({ severity: 'info', summary: 'Loading', detail: 'Loading. Please wait' });
  const auth = getAuth();
            
  signInWithPopup(auth, this.store.provider)
    .then((result) => {
      const user = result.user;
      this.store.user = user;
      this.store.getUserMeta()
      .then(() => {
        this.store.getVehicles()
          .then(() => {
            this.toast.removeAllGroups();
            this.router.push("/");
            console.log("route pushed");
          })
      })
    })
}
"primevue": "^3.15.0"
"vue": "^3.2.25",
"vue-router": "^4.1.2"
"vite": "^3.0.2"

I have the same issue running local or if I build and push to firebase hosting. Any ideas?

Re: Permission denied to access property "__v_isRef" on cross-origin object

Posted: 26 Jul 2022, 10:22
by tugce.kucukoglu
Hi!

Please try to remove package-lock.json and node_modules files and install them again. They could be out of date.

Re: Permission denied to access property "__v_isRef" on cross-origin object

Posted: 27 Aug 2022, 03:28
by dbuckman
Thanks for getting back to me. No luck reinstalling the packages.