프론트엔드 첫걸음

FirebaseError: Firebase: Error (auth/operation-not-allowed). 본문

로그/문제상황

FirebaseError: Firebase: Error (auth/operation-not-allowed).

차정 2022. 10. 20. 14:18

Info: The current domain is not authorized for OAuth operations. This will prevent signInWithPopup, signInWithRedirect, linkWithPopup and linkWithRedirect from working. Add your domain (localhost) to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.

https://stackoverflow.com/questions/37344066/firebase-this-domain-is-not-authorized

[Firebase: This domain is not authorized

I imported Firebase JS v3 API and used to initialize Firebase using: firebase.initializeApp(config); However the app failed to load correctly via web browser on localhost, resulting in the follow...

stackoverflow.com](https://stackoverflow.com/questions/37344066/firebase-this-domain-is-not-authorized)

  1. https://console.cloud.google.com 에서 로그인
  2. API 및 서비스 > 자격 증명으로 이동합니다.

여기에서 FireBase에 연결하는 앱에서 사용 중인 API 키를 찾습니다.

  1. 이제 HTTP 리퍼러에 사용자 정의 도메인을 추가하십시오.

 

 

 

in firebase console Auth --> Authorised domains


must equal (in Google cloud console -- > API & Services --> credentials ) :


must equal (in api config) :