# WebAssembly.Memory object cannot be serialized

**URL:** <https://forums.unrealengine.com/t/webassembly-memory-object-cannot-be-serialized/462384>\
**Category:** Platform & Builds\
**Tags:** UE4-24, HTML5, unreal-engine, question\
**Created:** [March 12, 2020, 12:33pm UTC](https://forums.unrealengine.com/t/webassembly-memory-object-cannot-be-serialized/462384 "2020-03-12T12:33:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomiotown](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomiotown](https://forums.unrealengine.com/u/tomiotown)\
**Post date:** [March 12, 2020, 12:33pm UTC](https://forums.unrealengine.com/t/webassembly-memory-object-cannot-be-serialized/462384/1 "2020-03-12T12:33:09Z")

</div>

Hi all,

I’ve been getting this error:

DataCloneError: Worker.postMessage: The WebAssembly.Memory object cannot be serialized. The Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers can be used to enable this.

I’m not a programmer so I don’t understand it, can anyone provide any insight?

[screenshot](https://imgur.com/a/h63So16 "errors")

---

<div class="post-metadata">

**Author:** ![eri0o](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eri0o](https://forums.unrealengine.com/u/eri0o)\
**Post date:** [October 23, 2020, 11:40pm UTC](https://forums.unrealengine.com/t/webassembly-memory-object-cannot-be-serialized/462384/2 "2020-10-23T23:40:32Z")

</div>

You need to enable those headers in your server.

```
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin

```

Configure these before the workers can be ran. This is only supported in Chromium derived browsers and Firefox.

---

<div class="post-metadata">

**Author:** ![kanandk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kanandk](https://forums.unrealengine.com/u/kanandk)\
**Post date:** [February 4, 2025, 3:32pm UTC](https://forums.unrealengine.com/t/webassembly-memory-object-cannot-be-serialized/462384/3 "2025-02-04T15:32:27Z")

</div>

Does not work on firefox even if the Cross-Origin values are set in vite.configjs
