# vim: filetype=apache sts=4 sw=4 autoindent
#
# This file is managed by Puppet.
#
<Directory <%= @upload_dir %>>
    Require all granted
    Header set Access-Control-Allow-Origin "*"
</Directory>

Alias <%= @upload_path %> <%= @upload_dir %>

# vim: filetype=apache sts=4 sw=4 autoindent
#
# This file is managed by Puppet.
#
<Directory <%= @upload_dir %>>
    Require all granted
    Header set Access-Control-Allow-Origin "*"
    Header set Access-Control-Allow-Headers "Range"
    Header set Access-Control-Expose-Headers "Content-Range"
</Directory>

Alias <%= @upload_path %> <%= @upload_dir %>

Allow range requests on uploads; fixes 'commons' role video in Safari
Allow range requests on uploads; fixes 'commons' role video in Safari

Adds a CORS allowance for the 'Range' header incoming and the
'Content-Range' header outgoing, which allows the ogv.js video shim
for Safari and old Edge/IE11 to play video from the "commons" role
on the other local sites.

Bug: T225452
Change-Id: If6244027dfcb92009f604004a04bf82b9f43c206
