I'm trying to understand how Content Security Policy nonce mechanism works in a scenario where the CSP header tag is set by Apache HTTPD acting as reverse proxy and not by the application server itself.
Since the nonce is random and the application inserts it into the script tag, I can only see the way where the response provided by the application (the backend part) contains the CSP header with the random nonce.
If the CSP header is set by Apache HTTPD (which is btw another server, not the backend server), i cannot se how Apache con now the random nonce, synchronizing it with the nonce generated by the backend.