You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to set a custom header to be served with every ember serve response. As far as I know, this is not possible.
ember serve <options...>
Builds and serves your app, rebuilding on file changes.
aliases: server, s
--port (Number) (Default: 4200) To use a port different than 4200. Pass 0 to automatically pick an available port.
aliases: -p <value>
--host (String) Listens on all interfaces by default
aliases: -H <value>
--proxy (String)
aliases: -pr <value>, -pxy <value>
--proxy-in-timeout (Number) (Default: 120000) When using --proxy: timeout (in ms) for incoming requests
aliases: -pit <value>
--proxy-out-timeout (Number) (Default: 0) When using --proxy: timeout (in ms) for outgoing requests
aliases: -pot <value>
--secure-proxy (Boolean) (Default: true) Set to false to proxy self-signed SSL certificates
aliases: -spr
--transparent-proxy (Boolean) (Default: true) Set to false to omit x-forwarded-* headers when proxying
aliases: --transp
--watcher (String) (Default: events)
aliases: -w <value>
--live-reload (Boolean) (Default: true)
aliases: -lr
--live-reload-host (String) Defaults to host
aliases: -lrh <value>
--live-reload-base-url (String) Defaults to baseURL
aliases: -lrbu <value>
--live-reload-port (Number) Defaults to same port as ember app
aliases: -lrp <value>
--live-reload-prefix (String) (Default: _lr) Default to _lr
aliases: --lrprefix <value>
--environment (String) (Default: development) Possible values are "development", "production", and "test".
aliases: -e <value>, -dev (--environment=development), -prod (--environment=production)
--output-path (Path) (Default: dist/)
aliases: -op <value>, -out <value>
--ssl (Boolean) (Default: false) Set to true to configure Ember CLI to serve using SSL.
--ssl-key (String) (Default: ssl/server.key) Specify the private key to use for SSL.
--ssl-cert (String) (Default: ssl/server.crt) Specify the certificate to use for SSL.
--path (Path) Reuse an existing build at given path.
Every now and then there's a good reason. For example, Chromium's mixed content experiment has Chrome and Chromium blocking http media requests on https sites.
In order to disable this non-standard behavior, you need to explain to all your customers that they need to opt-out from this experiment, or simply send a mixed-content: noupgrade header with the html content of your Ember site.
I wouldn't be apposed to accepting an addition that exposed this.
That being said, I suspect it can be accomplished, via someone inconvenient public API today, via in-repo add-on, that insert's itself into the express middleware chain.
I would like to set a custom header to be served with every
ember serve
response. As far as I know, this is not possible.Every now and then there's a good reason. For example, Chromium's mixed content experiment has Chrome and Chromium blocking http media requests on https sites.
In order to disable this non-standard behavior, you need to explain to all your customers that they need to opt-out from this experiment, or simply send a
mixed-content: noupgrade
header with the html content of your Ember site.The same goes for FastBoot sites: ember-fastboot/fastboot-app-server#100
The text was updated successfully, but these errors were encountered: