CORS Issue: Blocked cross-origin request

Since yesterday i started to have problems using genkit-ai in a next_js. I see this in IDX Output:
Error: :warning: Blocked cross-origin request from…
Even though adding this line:
allowedDevOrigins: [*] to next.config.ts

The most weird thing is in some places of the app the calls to genkit-ai work.

Any idea or suggestion?

Thanks in advance