mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
Documented the solution to a common issue in development.
@ -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 *;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user