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?

【エラー解消】bundle.js:80496 Uncaught (in promise) FirebaseError: No matching allow statements

Last updated at Posted at 2025-05-15

エラー内容

bundle.js:76890 WebSocket connection to 'ws://localhost:3000/ws' failed:
WebSocketClient @ bundle.js:76890このエラーを分析

Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies.

ERROR
No matching allow statements
FirebaseError: No matching allow statements

原因

FirebaseError: No matching allow statements
上記より、Firestore セキュリティルールが原因でデータの読み書きが拒否されている。

解消策

該当ファイルの書き換え

firesotre.rules
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /users/{userId} {
      allow read, write: if request.auth != null;
    }
  }
}
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?