Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

265
Visualizações
Why does firebase asks for read access in order to write something into a collection?

Why does the firebase asks me for reading permision in order to write something in a collection?

Here is what i am trying to do:

            setDoc(doc(db, "UserOrders", {arguments[4] + 1}), {
                name: arguments[0],
                lastname: arguments[1],
                image: arguments[2],
                contact: arguments[3],
                orderNumber: arguments[4] + 1
            });

Obviously it is supposed to write some information into a collection, and it has nothing to do with the read property, but when i attempt to execute this code i get the next error;

enter image description here

Here are my firebase rules:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow create, write: if true;
    }
  }
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda