From 39d33f35edb088c84e55c9e7ace1835602dd366c Mon Sep 17 00:00:00 2001 From: danielfm Date: Tue, 16 Dec 2014 17:59:40 -0800 Subject: [PATCH] Documented the solution to a common issue in development. --- Directives.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Directives.md b/Directives.md index a209aac..660f45e 100644 --- a/Directives.md +++ b/Directives.md @@ -1136,6 +1136,9 @@ In `http{}` section set up the following location for clients to play HLS. } root /tmp; add_header Cache-Control no-cache; + + # To avoid issues with cross-domain HTTP requests (e.g. during development) + add_header Access-Control-Allow-Origin *; } } } @@ -1422,6 +1425,9 @@ In `http{}` section set up the following location for clients to play MPEG-DASH. location /dash { root /tmp; add_header Cache-Control no-cache; + + # To avoid issues with cross-domain HTTP requests (e.g. during development) + add_header Access-Control-Allow-Origin *; } } }