# Custom headers for proxy maven repository to Gitlab package repo?

## post by pat.turner on Aug 16, 2023

<img src="https://community.sonatype.com/letter_avatar_proxy/v4/letter/p/e47774/48.png" alt="Patrick Turner">

Patrick Turner

I’m trying to add a proxy Maven repository for a Gitlab package repository.

Gitlab repositories require authentication via a custom header.

e.g.

```makefile
Private-Token: abcdefghijk
```

I can’t find a way to configure this. Any ideas?

---

## post by unixadmin on Nov 22, 2023

<img src="https://community.sonatype.com/letter_avatar_proxy/v4/letter/u/9dc877/48.png" alt="Ivo Schindler">

Ivo Schindler

just add the username and the token to the http-authentication username and password field… at least here it works.
