CrossDomain Access, HLS through CloudFront with Signed URL(JWplayer)
<p>I am using <strong>HLS</strong> streaming with the <strong>Amazon S3</strong> and <strong>Cloud Front</strong> using the <strong>JWplayer</strong>.<strong>(With Rails)</strong></p>

<p>I used the Signed URL to encrypt the URL and created an Origin Access Identity as given in the Amazon Cloud Front documentation. 
The Signed URL's are generated fine.</p>

<p>I also have a <strong>'crossdomain.xml'</strong> file in my bucket which is allowing all the origins(I have given '*')
Now, when I am trying to play my Hls video files from my bucket, I am getting <strong>crossdomain access denied issue</strong></p>

<p>I think JW Player is trying to access the 'crossdomain.xml' file without the signed hash. So, it's getting that error.</p>

<p>I have tested my file in demo JWplayer Stream tester and this is the error I am getting in console.</p>

<pre><code>Fetch API cannot load http://xxxxxxxx.cloudfront.net/xxx/1/1m_test.ts. 
</code></pre>

<p><code>No 'Access-Control-Allow-Origin' header is present on the requested resource.</code>
<code>Origin 'http://demo.jwplayer.com' is therefore not allowed access. 
The response had HTTP status code 403.</code></p>

<p><code>If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.</code></p>

<p><a href="https://i.stack.imgur.com/ds6e6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ds6e6.png" alt="Here is the ScreenShot."></a></p>

<p>Here is the ScreenShot.</p>

<p>Please help me out. Thank You.</p>

<p><a href="https://java.awsblog.com/post/Tx1VE22EWFR4H86/Accessing-Private-Content-in-Amazon-CloudFront" rel="nofollow noreferrer">This is the link I followed to configure my CloudFront Distribution</a></p>