HTMX custom headers are not being passed through NGINX #1493
lonnieezell
started this conversation in
General
Replies: 1 comment
-
I wonder if you just need to explicitly pass those parameters from nginx to PHP via Upon install, Valet updates the default nginx Or if it really needed to be specific to a certain site, you could edit that site's |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a site I'm working on that's using HTMX. HTMX can use a number of custom headers in the request and I'm trying to capture those values to output them in a debug screen. However, they don't appear to be making it through the server to the PHP script.
Looking at the request in the browser it clearly lists the following headers being passed:
Once in PHP-land there none of those are showing up when I look at
$_SERVER
or usinggetallheaders()
.I remember having a similar issue years ago with Apache and was fixed with a htaccess rule, IIRC, but I haven't run across this using Nginx. I've spent a couple hours searching and I guess my Google-fu is failing today.
Anyone know of a configuration value for Nginx that might be causing these custom headers to be lost?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions