"failed to fetch. Does the server allow CORS?" Firebase

Hello everyone, thanks for helping the newbies like me.

I’m following this video to build a signup page using Firebase.

I did all the setup and when I hit the button to create record in Firebase, I got the “failed to fetch. Does the server allow CORS?”

I searched past threads related to this issue, but all the answers involved something to do with Apache Tomkat and web.xml (which I have no idea what these are). Is there a simpler way to solve this by any chance inside of Firebase?

Here’s the full error message “Access to fetch at ‘https://identitytoolkit.googleapis.com/v1accounts:signUp?key=%(hidden)’ from origin ‘https://platform.preview.appgyver.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.”

Thanks in advance!

So far, I went to the Functions in Firebase and installed the node.js and the firebase tool. I have to deploy something, but I don’t know how to make a function and deploy.

I typed “firebase deploy” in the command prompt, but got an error