๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
โ—๏ธError

[Firebase Error ํ•ด๊ฒฐ๋ฒ• ํฌํ•จ] Missing or insufficient permissions

by Fomagran ๐Ÿ’ป 2021. 3. 10.
728x90
๋ฐ˜์‘ํ˜•

์•ˆ๋…•ํ•˜์„ธ์š” Foma ์ž…๋‹ˆ๋‹ค!

 

์˜ค๋Š˜ ๋งŒ๋‚œ ์—๋Ÿฌ๋Š” ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋กœ Firebase์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›์•„์˜ค๋ ค๊ณ  ํ•˜๋Š”๋ฐ 

 

๊ฐ‘์ž๊ธฐ ์•„๋ž˜์™€ ๊ฐ™์ด Missing or insufficient permissions ๋ผ๊ณ  ๋œจ๊ณ  ๋ฐ์ดํ„ฐ๊ฐ€ ๋ฐ›์•„์ง€์ง€ ์•Š๋Š”๊ฑฐ์—์š”...

 

 

๊ทธ๋ž˜์„œ ์—ด์‹ฌํžˆ ์•Œ์•„๋ณธ ๊ฒฐ๊ณผ ํ•ด๊ฒฐ๋ฒ•์„ ์ฐพ๊ฒŒ ๋˜์–ด ์ด ๊ธ€์„ ์ •๋ฆฌํ•˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

 


์šฐ์„  ํ•ด๋‹น ํ”„๋กœ์ ํŠธ๊ฐ€ ์žˆ๋Š” Firebase Console๋กœ ์ด๋™ํ•ด์ฃผ์„ธ์š”.

 

๊ทธ๋ฆฌ๊ณค ์™ผ์ชฝ์—์„œ ๋‘๋ฒˆ์งธ ์•„์ด์ฝ˜์ธ ์žˆ๋Š” Firestore ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๊ณ  ๊ทœ์น™ํƒญ์„ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์š”.

 

๊ทธ ๋‹ค์Œ ์•„๋ž˜์™€ ๊ฐ™์ด allow read,write: if  true; ๋กœ ๋ฐ”๊ฟ”์ฃผ์„ธ์š”.

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

 

์ž์„ธํ•œ ์„ค๋ช…์„ ํŒŒ์ด์–ด๋ฒ ์ด์Šค ๋ณด์•ˆ ๊ทœ์น™์„ ์ œ๊ฐ€ ์ž์„ธํ•˜๊ฒŒ ์•Œ์•„๋ณด๊ณ  ์ •๋ฆฌํ•ด์„œ ๋‹ค์Œ์— ํฌ์ŠคํŒ…ํ•˜๋„๋ก ํ• ๊ฒŒ์š”!

 

728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€