# Configure JS devServer with custom headers

**URL:** <https://discuss.kotlinlang.org/t/configure-js-devserver-with-custom-headers/27263>\
**Category:** JavaScript\
**Created:** [August 21, 2023, 5:10pm UTC](https://discuss.kotlinlang.org/t/configure-js-devserver-with-custom-headers/27263 "2023-08-21T17:10:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loke](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@Loke](https://discuss.kotlinlang.org/u/Loke)\
**Post date:** [August 21, 2023, 5:10pm UTC](https://discuss.kotlinlang.org/t/configure-js-devserver-with-custom-headers/27263/1 "2023-08-21T17:10:43Z")

</div>

I’m building a web frontend for my multiplatform project, and as part of that I need to use the JS `SharedArrayBuffer`. When using this class in JS, you must have two specific headers set. If not, this class is not available.

How can I enable these headers when running the devServer? I have managed to configure a lot of things on it (such as static resource directories), most of this using configuration options that appear to be completely undocumented.

However, I have been unable to figure out how to configure the headers. Is this documented anywhere?
