_header file not working for netlify function deployment

Hi I am using netlify functions to host my backend service. I am running into an issue with the _header file. I have added two headers to my _header file:

/*
  Access-Control-Allow-Origin: *
  Access-Control-Allow-Headers: Content-Type

When I run netlify dev and test the server locally the headers appear. However, when I deploy the service using netlify deploy --prod, the headers no longer appear.

The deploy logs also show the message:

1 header rule processed
All header rules deployed without errors.

What might be causing this issue?

Hey there, @nikhil.y.sharma2017 :wave:

Thanks so much for reaching out, and welcome to Netlify Forums :netliconfetti:

Can you share your site name or your site ID so we can look into this further?