Enable cross origin for subdomain

Solution 1:

If you're trying to find a solution to cross-site origin problems on all subdomains for your domain, there's a much more robust answer here:

https://stackoverflow.com/a/39668584/1402498

Solution 2:

Hi I was able to solve it using this code

<IfModule mod_headers.c>
   SetEnvIfNoCase Origin "https?://(www\.)?(xyz\.com|video\.xyz\.com)(:\d+)?$" ACAO=$0
   Header set Access-Control-Allow-Origin %{ACAO}e env=ACAO
</IfModule>

Solution 3:

It looks like you may be specifying the origin incorrectly. Try this instead:

Header set Access-Control-Allow-Origin "https://video.xyz.example"