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
2018-12-07 11:29:20 -05:00
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 😬
2018-11-07 15:53:14 -05:00
Barış Soner Uşaklı
14f6e74bad
closes #6556
2018-06-06 13:11:48 -04:00
Barış Soner Uşaklı
ae0f1847ae
allow multiple origins for access-control-allow-origin header
...
add access-control-allow-credentials header to acp
2018-03-20 12:25:00 -04:00
Julian Lam
98b0bdc7e1
added helmet for better standard of protection across the board
2018-02-21 14:13:29 -05:00
Julian Lam
7edc58b727
stricter Referrer-Policy to reduce unintended information leakage
2018-02-20 16:11:07 -05:00
Julian Lam
9a1f722a05
appending X-Upstream-Hostname header in dev mode
2018-02-20 14:51:41 -05:00
Baris Usakli
59aeee6516
remove addExpiresHeaders
2017-07-10 15:26:58 -04:00
psychobunny
e121a5a798
closes #5574
2017-04-06 17:57:01 -04:00
Peter Jaszkowiak
3b0dd2d1ef
ESlint padded-blocks
2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
a038c66549
ESlint quotes
2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
52f2028206
ESlint no-multiple-empty-lines
2017-02-17 22:08:23 -07:00
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
2017-02-17 19:31:21 -07:00
barisusakli
6beacdb80c
fix headers for new installs
...
encodeURI(undefined) === "undefined"
2016-11-23 21:06:02 +03:00
Julian Lam
b7fa8c1db1
fixes #5230
2016-11-23 12:25:01 -05:00
barisusakli
17f8afd0dc
closes #5230
2016-11-23 16:09:46 +03:00
barisusakli
c972a339e6
fix value
2016-10-17 19:01:11 +03:00
barisusakli
862678eefe
encodeURIComponent header values
2016-10-17 18:58:25 +03:00
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
2016-10-13 11:43:39 +02:00
barisusakli
8f408faf46
organize middlewares
...
removed app.locals.middleware
middlewares can be required anywhere, ie in controllers
2016-08-26 18:50:37 +03:00