Initiate n8n workflow from angular application

Hi Friends, I have created a workflow in n8n. Is there any way to start this workflow from Angular application or some other application?


You can use a Webhook node to trigger your workflow from anywhere.


thanks, able to configure the webhook and able to trigger the webhook from postman. But always getting CORS error when I trigger the webhook from Angular application. Getting Access-Control-Allow-Origin issue, even if I set the Access-Control-Allow-Origin value as *. Getting following error

Access to XMLHttpRequest at ‘http://localhost:5679/webhook/sample-webhook’ from origin ‘http://localhost:4200’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: The ‘Access-Control-Allow-Origin’ header has a value ‘http://localhost:8080’ that is not equal to the supplied origin.

You can then add the Header “Access-Control-Allow-Origin” and set it to “*”

Here another topic which talks about that:

1 Like