skip to Main Content

Firebase Callable Cloud Function CORS Error using Firebase Emulator and Vite

The following is the client-side code to call the cloud function: // add a new post addPostForm.addEventListener('click', (e) => { e.preventDefault(); const addPost = httpsCallable(functions, 'addPost'); addPost({ title: addPostForm.postTitle.value, description: addPostForm.postDescription.value, }) .then(() => { addPostForm.reset(), addPostModal.classList.remove('open'); addPostForm.querySelector('.error').textContent = '';…

VIEW QUESTION

Im trying to write code to get (doc id) from Firebase

Look at my database structure: and here is my code that I want to use ID in : Widget build(BuildContext context) { return SafeArea( child: InkWell( borderRadius: BorderRadius.circular(30), child: Dismissible( key: UniqueKey(), direction: DismissDirection.startToEnd, background: Container( color: Colors.red, child: Row(…

VIEW QUESTION
Back To Top
Search