Unsupported function: Headers

The Headers function doesn't seem to work in v3.

2023-02-05T21:05:10Z ERR error="error while parsing rule Path(`/ide`) && Headers(`MyCustomHeader`, `yoyo`): unsupported function: Headers" entryPointName=web-secure routerName=yoyo@docker
2023-02-05T21:05:10Z ERR error="invalid rule Path(`/ide`) && Headers(`MyCustomHeader`, `yoyo`), error: unsupported function: Headers" entryPointName=web-secure routerName=yoyo@docker
      - 'traefik.http.routers.yoyo.rule=Path(`/ide`) && Headers(`MyCustomHeader`, `yoyo`)'

If I run without the Headers rule, it "works":

      - 'traefik.http.routers.yoyo.rule=Path(`/ide`)'

This is on version v3.0.0-beta2.

Hello,

take a look at the migration guide: Traefik V3 Migration Documentation | Traefik | v3.0

1 Like

Thanks. Is there a way to choose v2 or v3 documentation?

yes at the bottom of the menu

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.