Cors for iframe settings

Nextcloud version (eg, 20.0.5): 25
Operating system and version (eg, Ubuntu 20.04): 22.04.2
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 7.4

Hello all,
I’m following this instruction:

Im getting this error in the console:
Refused to frame ‘https://test/’ because an ancestor violates the following Content Security Policy directive: “frame-ancestors ‘self’ https://test”.

(index):6583 crbug/1173575, non-JS module files deprecated.

can somebody help me with this?