# Secure /webhook & /webhook-test URLS with basic Auth

**URL:** <https://community.n8n.io/t/secure-webhook-webhook-test-urls-with-basic-auth/8896>\
**Category:** Questions\
**Created:** [November 4, 2021, 12:37pm UTC](https://community.n8n.io/t/secure-webhook-webhook-test-urls-with-basic-auth/8896 "2021-11-04T12:37:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubarseo](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@dubarseo](https://community.n8n.io/u/dubarseo)\
**Post date:** [November 4, 2021, 12:37pm UTC](https://community.n8n.io/t/secure-webhook-webhook-test-urls-with-basic-auth/8896/1 "2021-11-04T12:37:53Z")

</div>

Hi there,

My sysadmin asked me to secure the acces to /webhook & /webhook-test via some auth, but so far my tests failed. If i do so (with basic auth), my webhooks arent accessible (i’ve done tests with POSTMAN) and triggers nodes stop working. Is this possible ?  
Am I doing something wrong ?

Thank you in advance 🙂

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [November 4, 2021, 1:06pm UTC](https://community.n8n.io/t/secure-webhook-webhook-test-urls-with-basic-auth/8896/2 "2021-11-04T13:06:30Z")

</div>

Hey @dubarseo,

I have just done a quick test in my test environment using Basic Auth for my webhook trigger and it appears to be working from from a curl command.

I have been using:

```auto
curl https://n8n.mydomain.tld/webhook-test/some-path -u myuser:mypass

```

Then in my webhook trigger I have it set to use Basic Auth and I have made some credentials for it to use.

The only problem I would have now is if the service I am using doesn’t support basic auth or header auth I won’t be able to use it.

What issue are you seeing in your testing?

---

<div class="post-metadata">

**Author:** ![dubarseo](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@dubarseo](https://community.n8n.io/u/dubarseo)\
**Post date:** [November 5, 2021, 8:35am UTC](https://community.n8n.io/t/secure-webhook-webhook-test-urls-with-basic-auth/8896/3 "2021-11-05T08:35:27Z")

</div>

Thanks Jon, il will try again.  
My issue is that simply workflows stop working when I use some basic auth, probably i’ve done something wrong.
