Fixing header calls to avoid Heroku routing issues