📌  相关文章
📜  已被 cors 策略阻止 react fetch firebase 实时数据库 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:02.292000             🧑  作者: Mango

代码示例1
likely error that arise to  cors blocked when using firebase is
when you initiate a put or get request with an incomplete firebase url
e.g
// wrong form
 this.http.get('https://******.firebaseio.com/data')   //this will throw an exception

// correct form                                                    
  this.http.get('https://******.firebaseio.com/data.json')