Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

379
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!