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: