Traefik not setting Access-Control-Allow-Origin header

Hey,

I am trying to have traefik set the Access-Control-Allow-Origin header to http://localhost:8080. I'm using the following docker labels:

- "traefik.http.middlewares.cors.headers.accessControlAllowOriginList=http://localhost:8080"
- "traefik.http.routers.myrouter.middlewares=cors"

But I still get a CORS error because the header is not present. However, if I set the value of accessControlAllowOriginList to * the header is present.

Am I missing something obvious as to why traefik is not setting the header when trying to set it to a value other than *?