fix: correct CORS middleware name and remove unused TLS certresolver comment
The CORS middleware was incorrectly referencing `webapp-cors` for the `accessControlAllowCredentials` header, which should use `complex-cors` to match the actual middleware name. Also removed a commented-out TLS certresolver line that was no longer needed.
This commit is contained in:
@@ -13,12 +13,11 @@ services:
|
||||
- "traefik.http.routers.complex.rule=Host(`complex.nabaksoft.ir`)"
|
||||
- "traefik.http.services.complex.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.complex.entrypoints=websecure"
|
||||
# - "traefik.http.routers.webapp.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.complex.middlewares=complex-cors@docker"
|
||||
- "traefik.http.middlewares.complex-cors.headers.accessControlAllowMethods=GET,POST,PUT,DELETE,OPTIONS"
|
||||
- "traefik.http.middlewares.complex-cors.headers.accessControlAllowHeaders=*"
|
||||
- "traefik.http.middlewares.complex-cors.headers.accessControlAllowOriginList=https://*.nabaksoft.ir,http://192.168.8.108"
|
||||
- "traefik.http.middlewares.webapp-cors.headers.accessControlAllowCredentials=true"
|
||||
- "traefik.http.middlewares.complex-cors.headers.accessControlAllowCredentials=true"
|
||||
- "traefik.http.middlewares.complex-cors.headers.addVaryHeader=true"
|
||||
networks:
|
||||
- services
|
||||
@@ -26,4 +25,4 @@ services:
|
||||
|
||||
networks:
|
||||
services:
|
||||
external: true
|
||||
external: true
|
||||
Reference in New Issue
Block a user