added CORS dev config

This commit is contained in:
Piotr Biernat 2022-12-24 05:58:38 +01:00
parent c44da161b1
commit e04efcade4

View File

@ -150,6 +150,7 @@ func (s *Service) getTags() []string {
"traefik.http.middlewares.requestid.plugin.requestid.headerName=X-Request-ID",
"traefik.http.middlewares.cors.headers.accesscontrolallowmethods=*",
"traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=*",
"traefik.http.middlewares.cors.headers.accessControlExposeHeaders=true",
"traefik.http.middlewares.cors.headers.accesscontrolmaxage=100",
"traefik.http.middlewares.cors.headers.addvaryheader=true",
"traefik.tls.certificates.certfile=/certs/client.cert",