A reverse proxy doesn't need a CORS so long the base content has a CORS policy, you can enable CORS via .htaccess easily.


A reverse proxy can be done with this code in apache2 / httpd


[CODE=apacheconf]<VirtualHost *:80>

  ProxyPreserveHost On

  ProxyPass / http://IP/

  ProxyPassReverse / http://IP/

</VirtualHost>[/CODE]


And a .htaccess can be simple like this:


[CODE=http]<IfModule mod_headers.c>

    Header set Access-Control-Allow-Origin "*"

</IfModule>[/CODE]


If you're using cloudflare then you'll have your domain nulled by their service for streaming the following types: .mp4 .mkv .avi .mp3 .ogg .ts .ts2 and .FLAC I have tested these file extensions personally and can confirm they will not only throttle your domain but not take the throttle off, so you'll need to get creative for your streaming chunks.


Back
Top