mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Add .htaccess to fix CORS issue
This commit is contained in:
parent
f8705b9091
commit
cbb3d1198b
1 changed files with 11 additions and 0 deletions
11
.htaccess
Normal file
11
.htaccess
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# JSMediaTags, which we use for parsing ID3 tags, requires some additional
|
||||
# headers be enabled when accessing the media file from another origin. Since
|
||||
# the media files, in our case, are served from a CDN, Amazon CloudFront, on
|
||||
# a different domain, we are subject to the CORS restrictions.
|
||||
#
|
||||
# CloudFront is just a caching layer that sits in front of jordaneldredge.com,
|
||||
# so we must serve these original files with the correct headers in order for
|
||||
# CloudFront to return the correct headers.
|
||||
#
|
||||
# https://github.com/aadsm/jsmediatags#http-access-control-cors
|
||||
Header add Access-Control-Allow-Headers "if-modified-since, range"
|
||||
Loading…
Add table
Add a link
Reference in a new issue