Plz yurn on JavaScript

1 post about firebase functions

How can I setup CORS in Google Cloud Functions. How can I remove the error 'Access-Control-Allow-Origin'. You get this issue about CORS and you don't know what to do ? I finally fix it on my side and I want to show you how I deal with it.