Hi guys, I'm trying to use Cloudflare Stream's Signed URLs feature to protect a video, but I'm consi
Hi guys,
I'm trying to use Cloudflare Stream's Signed URLs feature to protect a video, but I'm consistently getting a 401 Unauthorized error when hls.js attempts to load the HLS manifest.
My Cloudflare Worker successfully generates the JWT token (all blue logs), and the exp claim is in the future. The accessRules in the token's payload are set to [{ type: "any", action: "allow" }]. I have also correctly configured "Allowed origins" for the video in the Stream dashboard to my Webflow domain.
Despite this, Stream returns 401 Unauthorized when the player tries to fetch the manifest.
Could you please help me understand why the token is being rejected? Could you check your internal logs for this video UID and the provided token to identify the exact reason for the 401?
Thank you!
I'm trying to use Cloudflare Stream's Signed URLs feature to protect a video, but I'm consistently getting a 401 Unauthorized error when hls.js attempts to load the HLS manifest.
My Cloudflare Worker successfully generates the JWT token (all blue logs), and the exp claim is in the future. The accessRules in the token's payload are set to [{ type: "any", action: "allow" }]. I have also correctly configured "Allowed origins" for the video in the Stream dashboard to my Webflow domain.
Despite this, Stream returns 401 Unauthorized when the player tries to fetch the manifest.
Could you please help me understand why the token is being rejected? Could you check your internal logs for this video UID and the provided token to identify the exact reason for the 401?
Thank you!
