Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

380
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda