Update Apache config to allow font CORS requests

This commit is contained in:
Alex Cabal 2021-01-19 21:08:51 -06:00
parent 8d76f516ee
commit cf4052d7d7
2 changed files with 4 additions and 2 deletions

View file

@ -110,8 +110,9 @@ Define domain standardebooks.org
</location>
# Enable HTTP CORS so that browser-based readers like Readium can access opds and ebooks
# Allow fonts for newsletter emails
# See https://github.com/standardebooks/tools/issues/2
<Location ~ /(ebooks|drafts|opds)/>
<Location ~ /(ebooks|drafts|opds|fonts)/>
Header set Access-Control-Allow-Origin "*"
</Location>

View file

@ -109,8 +109,9 @@ Define domain standardebooks.test
</location>
# Enable HTTP CORS so that browser-based readers like Readium can access opds and ebooks
# Allow fonts for newsletter emails
# See https://github.com/standardebooks/tools/issues/2
<Location ~ /(ebooks|drafts|opds)/>
<Location ~ /(ebooks|drafts|opds|fonts)/>
Header set Access-Control-Allow-Origin "*"
</Location>