Since I´m having issues using Blazorise WASM version of plyr.io video player to play AES token videos because dash.js doesn´t support AES encryption I´m trying to implement this my self using hls.js
I have this repository Where it looks like its working but now I´m getting CORS errors trying to play the video stream
Access to XMLHttpRequest at 'https://myServer-euno.streaming.media.azure.net/0b4ba27d-2e47-45c3-b764-00713ede5d25/a6c1feb9-e9b7-4003-997d-6ca720e14da1.ism/manifest(format=mpd-time-cmaf,encryption=cbc)&aes=true&aestoken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cm46bWljcm9zb2Z0OmF6dXJlOm1lZGlhc2VydmljZXM6Y29udGVudGtleWlkZW50aWZpZXIiOiJjMmUzN2IyYy1iNTg5LTQxNTEtYjlkYy1mNTU1NDc2MGI4NDAiLCJ1cm46bWljcm9zb2Z0OmF6dXJlOm1lZGlhc2VydmljZXM6bWF4dXNlcyI6IjUiLCJuYmYiOjE2NzYzMDg0MTgsImV4cCI6MTY3NjMwOTMxOCwiaXNzIjoiaUJlaW5uaUlzc3VlciIsImF1ZCI6ImlCZWlubmlBdWRpZW5jZSJ9.oCwg5rPDna3VKiOYhP9zHyD6cSxuLweq5rQXYFeIsHc' from origin 'https://localhost:7101' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
So my question is: Can I do something about this in Azure Media Service or Blazor WASM? This works "fine" if I play the stream in IFrame like this. But I´m trying to get rid doff this code using Azure Media Player so it must be doing something under the hood, correct?
<iframe src="//aka.ms/ampembed?url=@Video.DashUrl&aes=true&token=@Video.Token&autoplay=false"
id="azuremediaplayer"
name="azuremediaplayer"
scrolling="no"
frameborder="no"
align="center"
height="500px"
width="672px"
allowfullscreen
class="embed-responsive-item"></iframe>