Commit graph

15 commits

Author SHA1 Message Date
Dessalines
7702c041e5
Move lemmyClient generation into fetchInitialData functions. Fixes #2243 (#2260)
* Trying more ssr fixes. #2243

* Try to enforce cross-fetch again.

* Try to forward cookies.

* Try to forward cookies 2.

* Trying a new cross-fetch.

* Fixing headers

* Fixing some auth issues.

* Fixing isBanned.

* Fix shutdown.

* Pushing up some tries.

* Moving lemmyclient building into fetchInitialData functions.
2023-12-05 03:07:36 +00:00
Dessalines
69a3a63dfd
Fixing QR code CSP, try 2. Fixes #2241 (#2242)
Co-authored-by: SleeplessOne1917 <insomnia_void@protonmail.com>
2023-11-28 09:56:28 -05:00
Dessalines
fe28c691e3
Fixing QR code CSP. (#2218) 2023-11-13 12:45:27 -05:00
ab545e0e19
Increase cache-control max-age to 60s (#2124)
Cache headers have been active in production for a while now, and I didnt see any issues reported. So it should be save to increase the max-age to reduce server load further.

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-12 15:27:56 -04:00
Dessalines
9f2289d466
Upgrading deps, running prettier. (#1987) 2023-07-28 16:15:42 -04:00
Sander Saarend
546f0ad704
Add nonce-based CSP header (#1907)
* Remove websocket config

* Add nonce based CSP
2023-07-10 14:26:41 -04:00
Alec Armbruster
0bcb2d77be
wip 2023-06-30 10:04:19 -04:00
Alec Armbruster
7743fa98b9
wip 2023-06-30 10:04:01 -04:00
Alec Armbruster
da45ffb46b
fix cache auth method 2023-06-30 09:42:09 -04:00
SleeplessOne1917
cc184a86c8 Fix authorized route false flag 2023-06-29 18:12:22 -04:00
SleeplessOne1917
2d88e42cab Fix dev caching issue 2023-06-29 16:33:08 -04:00
Alec Armbruster
d8ee0ec78a
change max-age to 5 for non-authed responses 2023-06-29 13:33:30 -04:00
SleeplessOne1917
339cefa2b0 Cache static data for a day 2023-06-29 13:14:48 -04:00
SleeplessOne1917
005135d4f2
Allow audio captcha through CSP (#1690)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-29 07:20:45 -04:00
32063a5794
Set cache-control headers to reduce server load (fixes #412) (#1641)
* Set cache-control headers to reduce server load (fixes #412)

* add missing file

* remove old middleware folder

* use let

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-06-28 16:32:07 -04:00