CORS Problems Apache_Nginx

Hello Everyone

I have a problem with my both 2 subdomain i get this error

Access to XMLHttpRequest at 'https://subdomain1.domain.xyz/public/assets/landing/image/' from origin 'https://subdomain2.domain.xyz' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
subdomain1.domain.xyz/public/assets/landing/image/:1   

Server INFO
Nginx_Apache
Ubuntu 22.04 x64
Cdn Cloudflare Free Version already disable the proxy and use only for dns