0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

firebaseで "CAPTCHA_CHECK_FAILED : Hostname match not found"が出たとき

Posted at

背景

firebase authenticationでSMS認証をしたい。
SMSメールを送る際にreCAPTCHAが必要

CAPTCHA_CHECK_FAILED : Hostname match not foundが出た

SMSメールを送信しようとすると以下のエラーが出た。
スクリーンショット 2024-02-21 18.01.54.png

解決策

reCAPTCHAを使用するにはアプリをホストしているドメインを許可する必要がある。
承認済みドメインを登録する方法

firebaseコンソールの場合

Authentication > settings > 承認済みドメイン
「ドメインの追加」からドメインを追加して保存する。

Identity Platformの場合

設定 > セキュリティ
「ドメインの追加」からドメインを追加して保存する。

終わりに

reCAPTCHAは難しい。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?