summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <david.schleef@rd.io>2013-11-12 13:59:55 -0800
committerDavid Schleef <david.schleef@rd.io>2013-11-17 14:28:00 -0800
commit932c745f6fd92f7df5831f8a0848437c0ba39b25 (patch)
tree4ba9b2b0f08a9b5cd7aaee28ef00be838ca7269f
parent7cdd51f86f6a2a1a90b98395c0ad755bcbbc30ac (diff)
adaptive: add CORS headers
-rw-r--r--gst-streaming-server/gss-adaptive.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-streaming-server/gss-adaptive.c b/gst-streaming-server/gss-adaptive.c
index 9a847d0..ad2ed1a 100644
--- a/gst-streaming-server/gss-adaptive.c
+++ b/gst-streaming-server/gss-adaptive.c
@@ -1349,6 +1349,12 @@ gss_adaptive_get_resource (GssTransaction * t, GssAdaptive * adaptive,
soup_message_headers_replace (t->msg->response_headers,
"Access-Control-Allow-Origin", "*");
+ soup_message_headers_replace (t->msg->response_headers,
+ "Access-Control-Allow-Headers", "origin,range");
+ soup_message_headers_replace (t->msg->response_headers,
+ "Access-Control-Expose-Headers", "Server,range");
+ soup_message_headers_replace (t->msg->response_headers,
+ "Access-Control-Allow-Methods", "GET, HEAD, OPTIONS");
failed = FALSE;
switch (adaptive->stream_type) {