-
Hello,
We’ve been using FV Player Pro on our website to stream videos for a few months now, we’re using our own dedicated server with Apache2, no external hosting, one domain for website + videos.
The only external service we’re using is Cloudflare to protect us from DDoS attacks – we have set up Cloudflare as CDN for our website meaning all traffic to domain.com and http://www.domain.com is proxied via Cloudflare.
All was working fine until several days ago when it suddenly stopped – now after clicking “play” videos do not start and the information “hlsjs-lite: network error” is visible in left top corner of the video window.
After debugging the problem in browser console it was obvious that Cloudflare started to block our traffic:
Access to XMLHttpRequest at ‘https://www.cloudflare-terms-of-service-abuse.com/stream.ts’ (redirected from ‘https://www.domain.com/1280x720_000.ts’) from origin ‘https://www.domain.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
We’ve added CORS on our side meaning we’ve added crossdomain.xml file in document root directory containing
<?xml version=”1.0″ ?>
<cross-domain-policy>
<allow-access-from domain=”*” />
</cross-domain-policy>plus Header set Access-Control-Allow-Origin “*” in apache2 virtualhost configuration.
It changed nothing – still does not work.
There is a possibility that we are missing something that has to be done on Cloudflare configuration – I’d be grateful for any hints.
For the time being we’ve turned CF off and everything works fine right now, but we lack ddos protection and we’re exposing our public ip.
If the configuration that we’re trying to achieve is not possible due to CF limitations or else I was thinking that we could try to set up our streaming in a subdomain on different IP for example streaming.domain.com and this IP/subdomain would not be proxied via CloudFlare, whille our main site domain.com would be proxied/protected. However I’m missing to see any options in wp-admin area allowing us to configure player/videos to work in a subdomain rather than main domain – is it even possible to set up such configuration? Please let me know.
Bests, Lukasz