Jupyter Notebook - Change HTTP Headers
You can generate a config file in your home directory by running:

jupyter notebook --generate-config


which should leave you with a file ~/.jupyter, called jupyter_notebook_config.py.



Have a look at all the possible configurations in the Jupyter documentation.

In addition to many server options, there is specifically an options to override Tornado configuration.


  NotebookApp.tornado_settings : Dict Default: {}
  
  Supply overrides for the tornado.web.Application that the Jupyter
  notebook uses.