Skip to main content
These optional services are not required to run Overleaf, but they are highly recommended for development, debugging, and inspection during local development. Please add the following to your docker-compose.yml :
develop/docker-compose.yml

Setup Hoppscotch

Proxy API Request

To setup Hoppscotch, you can visit http://localhost:3000, then go to setting tab. You need to set Proxy to http://localhost:9159, so that your debug tools can interact with container internal Networks.
Now you can test with http://web:3000/status to check if web is alive:

CSRF Problems

If you use postman or other debug tools to generate a post request, you may find the login is forbidden, and the reason is for the 401 error. That’s because Overleaf is protected by csrf verification.
In your console, you may see:
To deal with this in your overleaf development, you need to setup your csrf token. Here is the detailed tutorial.
1

Add Pre Request

Add the following code to Pre-Request
The script is as list:
2

Add Request Header

You need to add the following headers:
3

Login with API Tools

Now you can login with your username and password.
Here is the response when you input the wrong username or password.
Last modified on October 4, 2026