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

384
Visualizações
Error while executing get request firebase, error: 'Unauthorized request in Angular

my rules are as bellow

database in firebase

this is where im calling api url

enter image description here i am trying to fetch data from firebase api in angular but facing 'Unauthorized request error, i tried for post req as well, tried in another service and component as well but it still the same. i simply added one json file to firebase and trying to fetch in my project.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Navigate to your Firebase console, and copy your project Firebase Config. Then pass it to the initializeApp method. For example, this implementation shows Google Auth:

const app = initializeApp(firebaseConfig);

        const auth = getAuth(app);
        useDeviceLanguage(auth);

        const provider = new GoogleAuthProvider();

        const R = await signInWithPopup(auth, provider);

To find your Firebase Config, go to this link, then select your project. Now go to the bottom (your apps section), select the config option from the SDK setup and configuration menu, and copy it.

about 4 years ago · Juan Pablo Isaza Relatório
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