---
title: "Discussion on \"How to Resolve \"400 Bad Request - Request Header or Cookie Too Large\" in Laravel API\" | Hashnode"
description: "Discussion on \"How to Resolve \"400 Bad Request - Request Header or Cookie Too Large\" in Laravel API\". When deploying a Laravel API with a frontend like NextJS on a server like nginx, one of the most confusing errors you can encounter is:\n400 Bad Request  \nRequest Header Or Cookie Too Large\n\nWhat makes"
url: "https://hashnode.com/posts/how-to-resolve-400-bad-request-request-header-or-cookie-too-large-in-laravel-api/695f45d3d5ce3dbc5c4e59db"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Resolve "400 Bad Request - Request Header or Cookie Too Large" in Laravel API](https://mmahzombo.hashnode.dev/how-to-resolve-400-bad-request-request-header-or-cookie-too-large-in-laravel-api?utm_source=hashnode&utm_medium=feed)

When deploying a Laravel API with a frontend like NextJS on a server like nginx, one of the most confusing errors you can encounter is: 400 Bad Request Request Header Or Cookie Too Large What makes

Jan 8 · 4 min read · mmahzombo.hashnode.dev  
Updated Mar 27  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#spa](https://hashnode.com/tag/spa)
-   [#cookies](https://hashnode.com/tag/cookies)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#frontend](https://hashnode.com/tag/frontend)
-   [#apis](https://hashnode.com/tag/apis)
-   [#nginx](https://hashnode.com/tag/nginx)

## Written by

[M'mah Zombo](https://hashnode.com/@Zombo)

@Zombo

  
[View profile](https://hashnode.com/@Zombo)

Software Engineer

I am a born-again Christian and a software engineer at Korlie Limited. I'm an ALX graduate and I'm studying software engineering at Limkokwing University. I like chess ❤️

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
