Cross-Origin-Opener-Policy not working in _headers

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

buy[dot]whitemonsterbase[dot]com

What is the error message?

This app doesn’t support smart wallets, the issue is that window.opener is inaccessible.

What is the issue or error you’re encountering

The error comes up only when the app is accessed via telegram link as popup and just after clicking on Coinbase wallet button.

What steps have you taken to resolve the issue?

App is deployed on cloudflare pages and successfully added Cross-Origin-Opener-Policy: same-origin-allow-popups to _headers as requested by the COOP policy from coinbase smart wallet developers. It just doesn’t work in telegram, it does work when the url is accessed from any browser. Anything that i’m missing here?

What are the steps to reproduce the issue?

Go to your telegram Saved Messages chat and type the app url, then click on it.
Click on Connect Wallet and see the error.

Screenshot of the error