This error is usually caused by AJAX calls, and is due to there being too much data in the request for Nginx to process with its current settings.
-
Create
~/.config/valet/nginx/all.confwith the following:proxy_buffer_size 4096k; proxy_buffers 128 4096k; proxy_busy_buffers_size 4096k; -
Append the following to
/usr/local/etc/nginx/fastcgi_paramsfastcgi_buffer_size 4096k; fastcgi_buffers 128 4096k; fastcgi_busy_buffers_size 4096k; -
Restart valet as both Nginx and PHP-FPM must be restarted for these settings to take effect.