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

161
Views
I can not insert and get data to firebase real-time database when I am trying to write and read data to firebase database. Error showing like this

This code I wrote for post method:

storeRecipes() { 
  const recipes = this.recipeService.getRecipes(); 
  this.http
    .put( 'ng-course-recipe-book-a84eb-default-rtdb.europe-west1.firebased…', recipes ) 
    .subscribe(response => { console.log(response); }); 
} 

Refused to apply style from 'https://fonts.googleapis.com/css?family=' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Access to XMLHttpRequest at 'https://ng-course-recipe-book-a84eb-default-rtdb.europe-west1.firebasedatabase.app/?auth= '' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

core.js:4002 ERROR HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: 'Unknown Error', url: 'https://ng-course-recipe-book-a84eb-default-rtdb.europe-west1.firebasedatabase.app/', ok: false, …} error: ProgressEvent {isTrusted: true, lengthComputable: false, loaded: 0, total: 0, type: 'error', …} headers: HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)} message: "Http failure response for https://ng-course-recipe-book-a84eb-default-rtdb.europe-west1.firebasedatabase.app/: 0 Unknown Error" name: "HttpErrorResponse" ok: false status: 0 statusText: "Unknown Error" url: "https://ng-course-recipe-book-a84eb-default-rtdb.europe-west1.firebasedatabase.app/" [[Prototype]]: HttpResponseBase

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