In a production-grade deployment, this header would be added by a web server like NGINX or IIS. By default, your local desktop modeler does not have a web server in front of it, so you cannot add this header.
If you really need this locally, I’d recommend setting up IIS as you would in a Windows deployment here. Then you can configure IIS to add this header as discussed here.