Mercure cors error 3

This commit is contained in:
Frank
2026-01-17 19:36:01 +01:00
parent e5f959210a
commit 96c2e4ca61
+2 -6
View File
@@ -106,13 +106,9 @@ services:
MERCURE_CORS_ALLOWED_ORIGINS: ${MERCURE_CORS_ALLOWED_ORIGINS} MERCURE_CORS_ALLOWED_ORIGINS: ${MERCURE_CORS_ALLOWED_ORIGINS}
MERCURE_PUBLISH_ALLOWED_ORIGINS: ${MERCURE_CORS_ALLOWED_ORIGINS} MERCURE_PUBLISH_ALLOWED_ORIGINS: ${MERCURE_CORS_ALLOWED_ORIGINS}
MERCURE_EXTRA_DIRECTIVES: | MERCURE_EXTRA_DIRECTIVES: |
cors_origins "*" cors_origins ${MERCURE_CORS_ALLOWED_ORIGINS}
publish_origins "*" publish_origins ${MERCURE_CORS_ALLOWED_ORIGINS}
anonymous anonymous
# Add explicit CORS headers for safety
header Access-Control-Allow-Origin "*"
header Access-Control-Allow-Methods "GET, POST, OPTIONS"
header Access-Control-Allow-Headers "Authorization, Content-Type"
ports: ports:
- "8090:80" - "8090:80"
volumes: volumes: