I'm a software engineer with a lot of React and startup experience. I write about my opinions on React, using Firebase with React, and lessons from building my 1st startup, Retro.
I like it too! You can do cross-origin requests. You just need to use the cors npm package.
Here's an example I pulled from a function I wrote.
import*asfunctionsfrom"firebase-functions";import*asCorsfrom"cors";constcors=Cors({origin:true});exportconsthandleCrossOriginRequest=functions.https.onRequest((req,res)=>{cors(req,res,async()=>{// your logic here});});
I'm a software engineer with a lot of React and startup experience. I write about my opinions on React, using Firebase with React, and lessons from building my 1st startup, Retro.
I like it too! You can do cross-origin requests. You just need to use the
cors
npm package.Here's an example I pulled from a function I wrote.
Hope this helps!
Yeah, but you need to set the billing method first.
That's painful.
I see. What do you need cross-origin requests for if I may ask?