Skip to content

Instantly share code, notes, and snippets.

@doug
Created June 19, 2013 00:01
Show Gist options
  • Save doug/5810614 to your computer and use it in GitHub Desktop.
Save doug/5810614 to your computer and use it in GitHub Desktop.
cors.xml for cross domain serving of videos
<?xml version="1.0" ?>
<CorsConfig>
<Cors>
<Origins>
<Origin>*</Origin>
</Origins>
<Methods>
<Method>GET</Method>
<Method>HEAD</Method>
<Method>OPTIONS</Method>
</Methods>
<ResponseHeaders>
<ResponseHeader>origin</ResponseHeader>
<ResponseHeader>accept-encoding</ResponseHeader>
<ResponseHeader>referer</ResponseHeader>
<ResponseHeader>range</ResponseHeader>
<ResponseHeader>Content-Range</ResponseHeader>
<ResponseHeader>Content-Length</ResponseHeader>
<ResponseHeader>Accept-Ranges</ResponseHeader>
</ResponseHeaders>
</Cors>
</CorsConfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment