Firebase Connection Test

Firebase Configuration

Verification of environment variables and Firebase initialization

Loading configuration status...

Firebase requires proper environment variables to be configured in your .env.local file.

Firestore Connection Test

Test your ability to read and write to Firestore

Troubleshooting 400 Bad Request Errors

Common solutions for Firebase connection issues

Security Rules

400 Bad Request errors are often caused by Firestore security rules. Check the Firebase console and ensure your rules allow read/write access for your test operations.

// Sample rules that allow read/write for authenticated users
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if request.auth != null;
    }
  }
}

CORS Configuration

If using Firebase from a different domain than your Firebase project, you might need to configure CORS for your Firebase project.

Network Issues

Check for any network restrictions that might be blocking connections to Firebase.