Api routes in Astro web site don´t work in cloudflare pages

For Workes & Pages, what is the name of the domain?

xtremmma.com

What is the error message?

[ERROR] TypeError: Can’t modify immutable headers.

What is the issue or error you’re encountering

I´m deploying an astro website to cloudflare pages, with an api route to check googl plces reviews, in local works but in cloudflare give me that error

What steps have you taken to resolve the issue?

  1. use cloudflare adapter for astro
  2. set astro.config.mjs with cloudflare as adapter
  3. created a _routes.json

What are the steps to reproduce the issue?

visit
https://xtremmma.com/api/google-places-reviews.json

Screenshot of the error