This would make the php code fetch file.mp4 from
All that works fine.
Now i decide to assign a nice domain to the amazon ec2 and run that domain through cloudflare for security.
So i buy a new domain called
myDomain from go daddy and assign that to the amazon ec2 server.
mydomain.com through a free cloudflare account for security reasons.
This should do the same thing as before, except go through cloudflare to amazon ec2, and then to the php script which would fetch the file.mp4 from
server1.com and pass it back through cloud flare to the browser.
But now for some reason the browser crashes when the javascipt make the call to the php giving an uncaught security error saying that cross-origin data may not be loaded
Actually it crashes when im fetching a streamed video which works when i dont use cloudflare.
Anybody knows what is the problem and how to fix??