# Cloudfront signed cookies - cannot play media

**URL:** <https://community.bitmovin.com/t/cloudfront-signed-cookies-cannot-play-media/3257>\
**Category:** Support\
**Tags:** bitmovin-player, bitmovin\
**Created:** [September 2, 2024, 1:40pm UTC](https://community.bitmovin.com/t/cloudfront-signed-cookies-cannot-play-media/3257 "2024-09-02T13:40:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![work](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@work](https://community.bitmovin.com/u/work)\
**Post date:** [September 2, 2024, 1:40pm UTC](https://community.bitmovin.com/t/cloudfront-signed-cookies-cannot-play-media/3257/1 "2024-09-02T13:40:52Z")

</div>

### Product

Player

### Question

I have a player working well with Bitmovin-encoded, encrypted and non-encrypted streaming video served from AWS Cloudfront. Now I’m trying to include signed cookies. These work fine for progressive media (h264 wrapped as .mp4) but if I try to play an HLS or DASH stream I get console errors: either a CORS problem or “Cannot play media. No decoders for requested formats”. This is on Mac on all browsers.  
Any ideas why this is failing? Thanks!

–update-- I’ve tried combinations of CORS policies and headers but no luck. However, the DASH stream plays natively and completely clean in Chrome. So I assume somehow the player needs additional config to pass the headers correctly - but what could that be?

–solved-- Turns out (just for streaming) you need a custom cache policy to pass back the necessary headers - `Origin`, `Access-Control-Request-Headers`, and `Access-Control-Request-Method`. see [here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-cors). Also, setting ‘withCredentials:true’ and ‘manifestWithCredentials:true’ under player-source-options is probably good too.

---

<div class="post-metadata">

**Author:** ![ludovic.michaud](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/ludovic.michaud/32/811_2.png) [@ludovic.michaud](https://community.bitmovin.com/u/ludovic.michaud)\
**Post date:** [September 9, 2024, 8:11pm UTC](https://community.bitmovin.com/t/cloudfront-signed-cookies-cannot-play-media/3257/2 "2024-09-09T20:11:58Z")

</div>

Hi,  
It looks like you managed to solve the issue.  
If any problem persists, please feel free to share a way for us to reproduce it and we’ll investigate more.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/1ab86334145095b0af9c5b924fa3ae6d920b6482.png) [@system](https://community.bitmovin.com/u/system)\
**Post date:** [September 9, 2024, 9:12pm UTC](https://community.bitmovin.com/t/cloudfront-signed-cookies-cannot-play-media/3257/3 "2024-09-09T21:12:54Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
