Firebase deploy Forbidden 해결

LeeJE20·2021년 11월 26일
3

세팅

목록 보기
2/2

Firebase 배포 이후 다음과 같은 오류가 생겼다.

Error: Forbidden
Your client does not have permission

이를 해결하는 과정을 정리해두었다.

Error: Forbidden
Your client does not have permission to get URL /api/search?keyword=%EC%8A%A4%ED%83%80%20%EA%B5%AC%EA%B9%80 from this server.

참고자료

  • 해결 방법 설명

https://stackoverflow.com/questions/47511677/firebase-cloud-function-your-client-does-not-have-permission-to-get-url-200-fr

  • 구글 클라우드 - IAM을 통한 액세스 승인

https://cloud.google.com/functions/docs/securing/managing-access-iam#allowing_unauthenticated_function_invocation

해결방법

  1. 아래 링크를 통해 구글 글라우드 콘솔 접속→ 해당 프로젝트에 접속

  1. 원하는 함수 체크박스 하고 권한 선택

  1. 주 구성원 추가 선택

  1. 새 주 구성원 칸에 allUsers 입력

  1. 역할 선택 → CloudFunction → CloudFunctions 호출자 선택

  1. 저장

  1. 공개 액세스 허용

  1. 테스트

0개의 댓글