Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

Firebase(Web)のセキュリティを10秒でさらっと確認する

①Google Web Developer Toolsでコンソールを開きます。(WindowsではF12キー、MacではCommand + Option + I)

②Firebaseを読み込みます。

const script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://www.gstatic.com/firebasejs/5.8.4/firebase.js';
document.head.appendChild(script);

③Firebaseの初期設定をします。

const config ={apiKey:"hogehoge",authDomain:"hoge.firebaseapp.com",databaseURL:"https://hoge.com",projectId:"hoge",storageBucket:"hoge.hoge.com",messagingSenderId:"000000000"}; 

firebase.initializeApp(config);

④データベースにアクセスします。

firebase.database().ref().once('value', function(snapshot) {
  console.log(snapshot.val());
});

コンソール上で何も出力されなければOKです。

(上記の例はあくまでもさらっと確認しているだけなので、不安な人は公式ドキュメントを読んでください。)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
1
Help us understand the problem. What are the problem?