Code Monkey home page Code Monkey logo

firebase-chrome-extension's Introduction

Status: Archived

This repository has been archived and is no longer maintained.

status: inactive

This sample is deprecated. For a Firebase v3.x sample see: https://github.com/firebase/quickstart-js/tree/master/auth/chromextension

Firebase Sample Chrome Extension

This is a demonstration of using Firebase in a Chrome extension with Firebase v2.x .

Extension Usage

Installing the extension adds an icon next to the chrome address bar, which when clicked opens a popup that displays the number of times the icon has been clicked (by all users of the extension).

Screenshot

Using Firebase in an Extension

The key to using Firebase in a Chrome extension is adding the following content security policy to your manifest.json:

{
  "content_security_policy": "script-src 'self' https://cdn.firebase.com https://*.firebaseio.com; object-src 'self'"
}

Note that:

  1. You must use the wildcard domain (https://*.firebaseio.com not https://yourfirebase.firebaseio.com), since internally the Firebase client library may need to connect to other subdomains.
  2. You must use https:// when including firebase.js and when referencing any Firebase database URLs, since Chrome extensions don't allow http script includes.

Once you've done that, you can use Firebase just as you would in any other web app. See our Getting Started guide for details.

License

MIT.

firebase-chrome-extension's People

Contributors

mikelehen avatar nicolasgarnier avatar robertdimarco avatar samtstern avatar startupandrew avatar

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.