Code Monkey home page Code Monkey logo

firestore-firefox-extension-issue's Introduction

  1. Add Firebase configuration in background.js.
  2. Create a user with email "[email protected]" and password "secret" in the Firebase console.
  3. Restrict Firestore access to signed in users [1].
  4. Go to about:debugging in Firefox, click on "This Firefox" and then on "Load Temporary Add-on…". Select the manifest.json file.
  5. Click on "Inspect" and switch to the "Console" tab.
  6. There should be no FirebaseError logged in the console.
  7. Add the string "<all_urls>" to the empty permissions array in manifest.json.
  8. Reload the extension on the about:debugging tab.
  9. FirebaseError: "Missing or insufficient permissions." is shown in the console.

[1]

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.