-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ember serve custom header support #17714
Comments
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. That also mimics the appropriate before/after clause to be "after: "broccoli-watcher": https://github.com/ember-cli/ember-cli/blob/master/lib/tasks/server/middleware/broccoli-serve-files/package.json#L6-L9 |
Interesting links. I did not now about Apparently, there is such a thing as |
Closing as resolved. Please re-open otherwise! |
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: