<@U04UQ68083H> is it possible to make ory actions ...
# ory-copilot
l
@chilly-king-10285 is it possible to make ory actions work with localhost? Right now it cannot reach my webhook.
c
A message from kapa.ai
Yes—use Ory Tunnel so Ory and your app share the localhost domain. This enables cookies/CORS and lets Actions/webhooks reach your local endpoints. Quick steps: - Start the tunnel pointing at your app, e.g.: ory tunnel --project <project-id> http://localhost:3000 [[Proxy and tunnel](https://www.ory.sh/docs/guides/cli/proxy-and-tunnel); [ory tunnel](https://www.ory.sh/docs/cli/ory-tunnel#ory-tunnel)] - Call Ory APIs via the tunnel URL (defaults to http://localhost:4000). [[Local development](https://www.ory.sh/docs/getting-started/local-development#local-development)] Tips: - Use localhost consistently (not 127.0.0.1) to avoid cookie issues. [[Local development](https://www.ory.sh/docs/getting-started/local-development#local-development); [CSRF troubleshooting](https://www.ory.sh/docs/kratos/debug/csrf)] - If a webhook still doesn’t fire, ensure the “sign in after registration” session hook isn’t placed before your webhook in Actions, as it stops subsequent hooks. [[Troubleshoot Actions](https://www.ory.sh/docs/troubleshooting/troubleshoot-actions)] - Configure Actions in Console → Authentication → Actions & Webhooks; you can set method, URL, auth, and body. [[Actions webhooks](https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks)] If you’re developing custom UIs (login/consent), also point Ory to your localhost pages via config or tunnel. [[Configure BYO UI](https://www.ory.sh/docs/kratos/bring-your-own-ui/configure-ory-to-use-your-ui#development); [Hydra custom UI](https://www.ory.sh/docs/hydra/guides/custom-ui-oauth2#configure-ory-network)]
l
what do i set as the url in ory actions
@chilly-king-10285 what do i set as the url in ory actions
c
A message from kapa.ai
Use your webhook’s publicly reachable HTTPS endpoint. In local development, run Ory Tunnel and point Actions to your local app via the tunnel domain, not raw localhost. - Production: set URL to your webhook service, e.g. https://api.example.com/ory-hook. [[Actions webhooks](https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks)] - Local dev: start tunnel, then use its base (default http://localhost:4000) to reach your local webhook, e.g. http://localhost:4000/my-webhook. [[ory tunnel](https://www.ory.sh/docs/cli/ory-tunnel#ory-tunnel); [Local development](https://www.ory.sh/docs/getting-started/local-development#local-development); [Proxy and tunnel](https://www.ory.sh/docs/guides/cli/proxy-and-tunnel)] Example action config (URL field): - url: https://mandrillapp.com/api/1.0/messages/send (Mailchimp example) [[Mailchimp config](https://www.ory.sh/docs/actions/integrations/mailchimp#configuration)] If the tunnel isn’t used, Ory Actions can’t reach localhost directly. Use the tunnel to expose Ory on the same domain and route to your local webhook. [[Security model](https://www.ory.sh/docs/security-model); [Proxy and tunnel](https://www.ory.sh/docs/guides/cli/proxy-and-tunnel)]