Question

I'm using a streaming distribution on CloudFront to serve media via RTMP. Obviously I want to restrict the crossdomain.xml file but CloudFront is only serving it's default one. The docs give instruction on how to overwrite their default -> I have a public, non-restricted crossdomain.xml in the root of my s3 bucket (the one with the media files), but it still serves out the default. What am I missing?

It should not be serving the default here: http://sixqlk56v2jbq.cloudfront.net/crossdomain.xml

Was it helpful?

Solution

The docs give instruction on how to overwrite their default

I'm not aware of this currently, to the contrary, see Restricting Access Using Crossdomain.xml:

The Adobe Flash Media Server crossdomain.xml file specifies which domains can access media files in a particular domain. CloudFront supplies a default file that allows all domains to access the media files in your streaming distribution, and you cannot change this behavior. [emphasis mine]

So while an annoying limitation indeed, I'm afraid you are out of luck currently, except if this turns out to be a documentation bug; you might want to file a respective support and/or feature request in the Amazon CloudFront Forum accordingly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top