Documented the solution to a common issue in development.

danielfm
2014-12-16 17:59:40 -08:00
parent d5bb072030
commit 39d33f35ed

@ -1136,6 +1136,9 @@ In `http{}` section set up the following location for clients to play HLS.
} }
root /tmp; root /tmp;
add_header Cache-Control no-cache; 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 { location /dash {
root /tmp; root /tmp;
add_header Cache-Control no-cache; add_header Cache-Control no-cache;
# To avoid issues with cross-domain HTTP requests (e.g. during development)
add_header Access-Control-Allow-Origin *;
} }
} }
} }