Commit 3396dec
committed
minor #11116 Add CORS_ALLOWED_ORIGINS to running mercure (althaus)
This PR was merged into the 4.2 branch.
Discussion
----------
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.
Cheers
Matthias
Commits
-------
365a669 Add CORS_ALLOWED_ORIGINS to running mercure1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments