From 365a6693a04b8c19f64c7f5361fbff939770485c Mon Sep 17 00:00:00 2001 From: Matthias Althaus Date: Fri, 8 Mar 2019 17:43:17 +0100 Subject: [PATCH] Add CORS_ALLOWED_ORIGINS to running mercure I had some trouble to get the example running due to the simple fact that running mercure without a proper `CORS_ALLOWED_ORIGINS` value was preventing Firefox from connecting to the EventStream (instant close). Using chrome which keeps the connection but complains than with a proper error message hinting the to CORS_ALLOWED_ORIGIN finally helped me to figure out the problem. So just adding the value to the example could reduce some headache. --- mercure.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercure.rst b/mercure.rst index 28a85451a5a..7386b58a263 100644 --- a/mercure.rst +++ b/mercure.rst @@ -71,7 +71,7 @@ Run the following command to start it: .. code-block:: terminal - $ JWT_KEY='aVerySecretKey' ADDR='localhost:3000' ALLOW_ANONYMOUS=1 ./mercure + $ JWT_KEY='aVerySecretKey' ADDR='localhost:3000' ALLOW_ANONYMOUS=1 CORS_ALLOWED_ORIGINS=* ./mercure .. note::