From 932c745f6fd92f7df5831f8a0848437c0ba39b25 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 12 Nov 2013 13:59:55 -0800 Subject: adaptive: add CORS headers --- gst-streaming-server/gss-adaptive.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- cgit v1.2.3