Controlling cookies in player using the REST API
It is possible to control which cookies the player can set using the REST API and the allowedcookies parameter.
An option is to fetch a completely cookieless player by setting the parameter an empty sting:
curl "https://rest.screen9.com/123456/videos/DqCsvA8McDeg1onWaRz_Mw/embed?allowedcookies="
<p>This would result in a response similar to:
</p> <pre>{"id": "DqCsvA8McDeg1onWaRz_Mw", "embed": "<iframe allow=\"autoplay; fullscreen\" allowfullscreen height=\"360\" referrerpolicy=\"no-referrer-when-downgrade\" src=\"https://api.screen9.com/embed/I-X52hrJNsre-ksyzeF_ni2kbjGeWwlQx8My3eREoqw?allowedcookies=\" style=\"border:0;\" title=\"bunny lo-res\" width=\"640\"></iframe>"}</pre> <p>Such player can be then instructed to store more cookies depending on user preferences as described in <a href="">Setting player to store only allowed cookie</a> article.