title: Firebase avoid CORS being removed after redirect
body: <p>I have a Firebase function with CORS enabled, when I call it from AJAX from my website with the firebase domain it works, however, I have set up a custom domain in Firebase hosting and that redirect to the function domain, after trying it I experienced some problems due the CORS header being removed on the redirect, but how I implement a CORS header in a firebase hosting domain that is a redirect?</p>