21 Commits (7a4b68e816dff44bf050d017ecefb59e4fc65176)

Author SHA1 Message Date
Barış Soner Uşaklı fdfbcc6efe feat: give names to more middlewares 6 years ago
Julian Lam 5f3d1c76c8
fix: #7038, autoLocale logic not playing nicely with no-refresh auths (#7059)
* fix: #7038, autoLocale logic not playing nicely with no-refresh auths

- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
  req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
  webserver.js into new middleware method.

* style: tests, use lodash

* fix: timeago strings not switching languages on login or out
6 years ago
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
6 years ago
Barış Soner Uşaklı 14f6e74bad closes #6556 7 years ago
Barış Soner Uşaklı ae0f1847ae allow multiple origins for access-control-allow-origin header
add access-control-allow-credentials header to acp
7 years ago
Julian Lam 98b0bdc7e1 added helmet for better standard of protection across the board 7 years ago
Julian Lam 7edc58b727 stricter Referrer-Policy to reduce unintended information leakage 7 years ago
Julian Lam 9a1f722a05 appending X-Upstream-Hostname header in dev mode 7 years ago
Baris Usakli 59aeee6516 remove addExpiresHeaders 8 years ago
psychobunny e121a5a798 closes #5574 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak a038c66549 ESlint quotes 8 years ago
Peter Jaszkowiak 52f2028206 ESlint no-multiple-empty-lines 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
barisusakli 6beacdb80c fix headers for new installs
encodeURI(undefined) === "undefined"
8 years ago
Julian Lam b7fa8c1db1 fixes #5230 8 years ago
barisusakli 17f8afd0dc closes #5230 8 years ago
barisusakli c972a339e6 fix value 8 years ago
barisusakli 862678eefe encodeURIComponent header values 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 8 years ago
barisusakli 8f408faf46 organize middlewares
removed app.locals.middleware
middlewares can be required anywhere, ie in controllers
9 years ago