I was trying to setup headscale with headscale ui and trying to access through external domain using traefik
I have created a file /root/headscale/traefik-dynamic/traefik-dynamic.yml
and have given this content inside
http:
middlewares:
corsHeader:
headers:
accessControlAllowOrigin:
- "https://tailscale.XXXXXXX.in/web"
accessControlAllowMethods:
- "GET"
- "POST"
- "OPTIONS"
accessControlAllowHeaders:
- "Content-Type"
But whatever I do the traefik log tells me
Tried deleting and recreating the file, changing folder anything I can think of. Do you guys have any suggestion on how to rectify this error?
2025-03-23T15:03:31+05:30 ERR error="middleware \"corsHeader@docker\" does not exist" entryPointName=web routerName=headscale@docker```