0

I'd like to set custom HTTP Response Headers on files served from the public folder in my Meteor app.

WebApp.connectHandlers.use as described here does not affect headers on the on replies to get requests within the public folder (in Meteor 0.8.1.3)

Are custom headers possible for requests to the public folder?

Community
  • 1
  • 1
Charles Holbrow
  • 3,967
  • 6
  • 30
  • 35

1 Answers1

4

Check out WebApp.rawConnectHandlers; they get run before the Meteor connect handler that serves the static assets. (See packages/webapp/webapp_server.js:259)

Emily
  • 5,869
  • 1
  • 22
  • 15