Relative Content

Tag Archive for laravelnginx

Overwrite NGINX header in middleware

I am trying to override the ‘Access-Control-Allow-Origin’ header defined in the NGINX configuration file. When I do this I see the ‘Access-Control-Allow-Origin’ header twice in the ‘response header’.

Overwrite NGINX header in middleware (Laravel)

I am trying to override the ‘Access-Control-Allow-Origin’ header defined in the NGINX configuration file. When I do this I see the ‘Access-Control-Allow-Origin’ header twice in the ‘response header’.

nginx errors showing in production instead of laravel errors

I have a server deployed with the LEMP stack and it’s running a laravel application. When I encounter an error (404 or 419 thus far) I’m seeing the nginx error page instead of a laravel styled error page. Any idea how to fix this or is this working as designed?