# Embedding OpenProcessing Sketches

**URL:** <https://discourse.processing.org/t/embedding-openprocessing-sketches/32614>\
**Category:** p5.js\
**Created:** [October 4, 2021, 8:29pm UTC](https://discourse.processing.org/t/embedding-openprocessing-sketches/32614 "2021-10-04T20:29:20Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![KumuPaul](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kumupaul/32/13072_2.png) [@KumuPaul](https://discourse.processing.org/u/KumuPaul)\
**Post date:** [October 7, 2021, 10:25pm UTC](https://discourse.processing.org/t/embedding-openprocessing-sketches/32614/13 "2021-10-07T22:25:43Z")

</div>

Oooof. That is annoying. [p5js.org](http://p5js.org) just 1) completely broke the fullscreen view of sketches (even if you navigate there directly, not in an iframe), and 2) introduced one of these stupid\* “accept cookies” banners. Unfortunately the latter is difficult to deal with because browsers will not send cookies with requests generated from within an iframe that is hosted on a site with a different domain name. So if [p5js.org](http://p5js.org) insists on having this “accept cookies” banner present on the full screen editor page then that is always going to show up, but they will hopefully fix the fact that they basically completely broke the page even after you dismiss the banner or load the page in a context were cookies are sent.

Good news: now that the `preview.p5js.org` domain is whitelisted you can switch to the `https://preview.p5js.org/{{UserName}}/embed/{{SketchId}}` style URL for your iframes and this will work because this page does not require cookies and isn’t broken. The only downside is it doesn’t have the “view code” button.

\*_\<rant\>_  
_All of these “accept cookies” banners are absolute worthless BS that has been foisted on the entire world by the misinformed, misguided, nanny state that is the EU. Cookies are just how the internet works! If you don’t like it, disable them completely in your browser (and have fun not being able to log in to websites or add items to your shopping cart). Cookies are part of the HTTP standards **for a good reason.** Consent banners do absolutely nobody any good whatsoever. They are just a huge nuisance. If you live in the EU I beg you to contact your MEPs immediately and tell them that they need to completely repeal this garbage legislation. If they don’t do so, then please vote for some MEPs that actually understand web technology, instead of these medieval luddites!_  
_\</rant\>_

---

_[View the full topic](https://discourse.processing.org/t/embedding-openprocessing-sketches/32614)._
