Mercure cors error 3
This commit is contained in:
@@ -106,13 +106,9 @@ services:
|
||||
MERCURE_CORS_ALLOWED_ORIGINS: ${MERCURE_CORS_ALLOWED_ORIGINS}
|
||||
MERCURE_PUBLISH_ALLOWED_ORIGINS: ${MERCURE_CORS_ALLOWED_ORIGINS}
|
||||
MERCURE_EXTRA_DIRECTIVES: |
|
||||
cors_origins "*"
|
||||
publish_origins "*"
|
||||
cors_origins ${MERCURE_CORS_ALLOWED_ORIGINS}
|
||||
publish_origins ${MERCURE_CORS_ALLOWED_ORIGINS}
|
||||
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:
|
||||
- "8090:80"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user