# Export final code?

**URL:** https://talk.observablehq.com/t/export-final-code/109
**Category:** Help
**Created:** [February 1, 2018, 4:04am UTC](https://talk.observablehq.com/t/export-final-code/109 "2018-02-01T04:04:15Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![mbostock](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mbostock/32/9_2.png) [@mbostock](https://talk.observablehq.com/u/mbostock)
#### Post date: [February 7, 2018, 6:18pm UTC](https://talk.observablehq.com/t/export-final-code/109/9 "2018-02-07T18:18:03Z")

</div>

@GordonSmith That error is not related to this thread. The issue is that the library you are requiring (the [HPCC Visualization Framework](https://github.com/hpcc-systems/Visualization) tries to access localStorage within your notebook, and because notebooks are sandboxed, you get a security error.

Notebooks currently share a domain ([static.observableusercontent.com](http://static.observableusercontent.com)), so we can’t add enable allow-same-origin in the sandbox; see [Jeremy’s post](https://talk.observablehq.com/t/iframe-sandbox-attribute/193/2?u=mike). A fix for this problem would be to change the HPCC library to only use localStorage if allowed. That is, the library should catch and handle the security error.

In the future, we might offer separate domains for notebooks so that we can enable allow-same-origin. But for now localStorage (and cookies, and sessionStorage) are off limits from within notebooks.

---

_[View the full topic](https://talk.observablehq.com/t/export-final-code/109)._
