# Request payload sends encrypted data on browser

**URL:** <https://discuss.elastic.co/t/request-payload-sends-encrypted-data-on-browser/247106>\
**Category:** APM\
**Tags:** rum\
**Created:** [September 1, 2020, 2:31pm UTC](https://discuss.elastic.co/t/request-payload-sends-encrypted-data-on-browser/247106 "2020-09-01T14:31:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandreservian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandreservian/32/69302_2.png) [@alexandreservian](https://discuss.elastic.co/u/alexandreservian)\
**Post date:** [September 1, 2020, 2:31pm UTC](https://discuss.elastic.co/t/request-payload-sends-encrypted-data-on-browser/247106/1 "2020-09-01T14:31:05Z")

</div>

**Kibana version** :7.6.2

**APM Agent language and version** : elastic/apm-rum@5.30.0

**Browser version** : google chrome 84.0.4147.105

**Original install method (e.g. download page, yum, deb, from source, etc.) and version** : npm

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)** :

Hi Guys, I updated the apm-rum@4.9.1 to apm-rum@5.5.0 and aflter to test apm-rum@5.3.0. In both the **request payload** is sending encrypted data. Example:

![Captura de tela de 2020-09-01 11-29-26](https://us1.discourse-cdn.com/elastic/original/3X/9/3/9334aeb559d4d8d9fcf9ca0d5aa2aaa52791980f.png)

How do I do to send normal json?

---

<div class="post-metadata">

**Author:** ![vigneshshanmugam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vigneshshanmugam/32/40324_2.png) [@vigneshshanmugam](https://discuss.elastic.co/u/vigneshshanmugam)\
**Post date:** [September 1, 2020, 6:32pm UTC](https://discuss.elastic.co/t/request-payload-sends-encrypted-data-on-browser/247106/2 "2020-09-01T18:32:52Z")

</div>

Hi @alexandreservian,

From the recent release, from 5.4.0 version we added support to compress the payload before being sent to the APM server to reduce the payload size significantly. This is only applicable to Chrome browser \> 81 as the `CompressionStream` specification [https://wicg.github.io/compression/](https://wicg.github.io/compression/) is supported only for those browsers.

If it's just for debugging purposes, you can decompress and view the data or can set `logLevel: debug` to log the transaction data.

[https://www.elastic.co/guide/en/apm/agent/rum-js/current/release-notes-5.x.html#release-notes-5.4.0](https://www.elastic.co/guide/en/apm/agent/rum-js/current/release-notes-5.x.html#release-notes-5.4.0)

Let us know if you need more details.

Thanks,  
Vignesh

---

<div class="post-metadata">

**Author:** ![alexandreservian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandreservian/32/69302_2.png) [@alexandreservian](https://discuss.elastic.co/u/alexandreservian)\
**Post date:** [September 2, 2020, 11:42am UTC](https://discuss.elastic.co/t/request-payload-sends-encrypted-data-on-browser/247106/3 "2020-09-02T11:42:23Z")

</div>

Hello @vigneshshanmugam, Is there any config to disabled this compress at apm init?

---

<div class="post-metadata">

**Author:** ![vigneshshanmugam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vigneshshanmugam/32/40324_2.png) [@vigneshshanmugam](https://discuss.elastic.co/u/vigneshshanmugam)\
**Post date:** [September 4, 2020, 9:58am UTC](https://discuss.elastic.co/t/request-payload-sends-encrypted-data-on-browser/247106/4 "2020-09-04T09:58:23Z")

</div>

Hi @alexandreservian ,

Unfortunately not, as its not a breaking change, we decided to implement this functionality by default as its a huge performance improvement.

If its for debugging, you could load the page from Safari/Firefox where the Compression specification is not supported.

Thanks,  
Vignesh

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 25, 2020, 5:58am UTC](https://discuss.elastic.co/t/request-payload-sends-encrypted-data-on-browser/247106/5 "2020-09-25T05:58:28Z")

</div>

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