Webhook works in n8n but not from my website

I’m testing an n8n workflow with a webhook, but the webhook only works when I test it from nn. When I send the request from my website, nothing appears in the workflow. I’ve checked the webhook url and the page where the request is triggered. could the url or webhook cnfiguration be causing this?

welcome and hi :slight_smile:

First thing I’d check is whether your website is calling the Production URL rather than the Test URL and make sure the workflow is active-published.

If that’s correct open your browser DevTools - Network tab and trigger the request from the website and check the status-error there.

That should quickly tell us if it’s CORS, the request method, or the webhook URL itself

If you share that error-status we can narrow it down for sure

Hi Isla, if the webhook works when you trigger it inside n8n but nothing appears when the request comes from your website, I’d first check whether the website is calling the production webhook URL rather than the temporary test URL.

I’d also open the browser Network tab when triggering the request from the page and check whether the request is actually being sent, which URL it hits, the HTTP method being used, and what response/status code comes back. That should quickly tell you whether the problem is on the website side or after the request reaches n8n.

If the URL is correct, I’d next compare the Webhook node’s method/configuration with the website request and check for a browser/CORS error.

If you can share the request method, the error/status shown in the Network tab, and whether you’re using n8n’s test or production webhook URL, I can help narrow down where it’s failing.

A few things commonly cause exactly this:
1) URL: the Test URL (/webhook-test/...) only listens while you've clicked "Listen for test event". Your site must call the Production URL (/webhook/...) and the workflow must be published/active.
2) Where to look: production runs do NOT show on the editor canvas - check the Executions list. Many people think it failed when it actually ran.
3) If the request comes from browser JavaScript (fetch/axios), open DevTools > Network. A CORS error or a failed OPTIONS preflight means the browser blocked it: set "Allowed Origins (CORS)" in the Webhook node's options to your site's origin (or *), and make sure the HTTP Method in the node matches what the site sends.
4) If the site posts server-side (WordPress/PHP etc.), make sure it's calling a public HTTPS URL, not localhost or an internal Docker hostname, and look at the site's error log for timeouts or SSL errors.
To see if the site sends anything at all (and with what method, headers and body), point it at a temporary request-capture URL for a minute. webhook.site works for this, or MockLane, which I built (disclosure). Then compare that to what the Webhook node expects.