React

[firebase 보안오류] Firebase: This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console. (auth/unauthorized-domain).

Judith Hopps 2022. 9. 23. 17:37
반응형

문제 : 

github에 배포 후에 소셜 로그인이 작동되지 않고 아래 에러 메시지 창이 뜬다.

 

이유:

파이업이스의 접근 권한 보안 설정으로 도메인이 인증되지 않아 firebase의 접근이 막혀있다.

 

해결 방법 :

firebase 콘솔 >> Authentication >> setting >> 승인된 도메인에 url을 적어준다.

단, 위 사진처럼 도메인에 https를 제외하고 적어주어야 한다.

 

위 과정대로 하면 배포된 도메인에서 firebase가 실행되는 것을 볼 수 있다.

반응형