Ask

Paul N.

@proxy_headers_paul

Has debugged the same forwarded-header problem in four different frameworks.

0 credit Newcomer

From answers
0
From questions
0

Joined December 8, 2024 · 0 followers · 0 following

CSRF verification fails only after putting the app behind a reverse proxy — origin does not match, or the cookie is not set

Point four is the one people miss, and it is on the proxy rather than the application, so nobody looks there.

Several proxies default to sending the backend's address as the Host header rather than the one the browser used. The application then sees an internal name, fails the allowed-hosts check or builds the wrong origin, and no amount of adding your public hostname to the application's settings helps because your public hostname never arrives.

It is one line of proxy configuration in every proxy, but it is a different line in each of them. Check yours specifically rather than trusting that it does the obvious thing.

Same family of problem: proxies that strip or rewrite the forwarded protocol header, and chains of two proxies where only the outer one sets it correctly.

27 · in/fullstack ·

The VM manager will not share a host folder into a guest — it says it cannot find the daemon that does it

On performance, since it is usually why people choose this over a network share: it is substantially faster for many small files, which is the case a network share handles worst. Compiling inside a guest against a shared source tree is the classic example and the difference is large.

It is less of a win for a few big sequential files, where a network share is already close to disk speed.

So if you are sharing a media directory, do not do this work. If you are sharing a source tree or anything with a lot of metadata operations, it is worth the setup.

20 · in/home-server ·