mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 10:56:46 -04:00
Update Apache config to allow font CORS requests
This commit is contained in:
parent
8d76f516ee
commit
cf4052d7d7
2 changed files with 4 additions and 2 deletions
|
@ -110,8 +110,9 @@ Define domain standardebooks.org
|
||||||
</location>
|
</location>
|
||||||
|
|
||||||
# Enable HTTP CORS so that browser-based readers like Readium can access opds and ebooks
|
# 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
|
# See https://github.com/standardebooks/tools/issues/2
|
||||||
<Location ~ /(ebooks|drafts|opds)/>
|
<Location ~ /(ebooks|drafts|opds|fonts)/>
|
||||||
Header set Access-Control-Allow-Origin "*"
|
Header set Access-Control-Allow-Origin "*"
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
|
|
@ -109,8 +109,9 @@ Define domain standardebooks.test
|
||||||
</location>
|
</location>
|
||||||
|
|
||||||
# Enable HTTP CORS so that browser-based readers like Readium can access opds and ebooks
|
# 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
|
# See https://github.com/standardebooks/tools/issues/2
|
||||||
<Location ~ /(ebooks|drafts|opds)/>
|
<Location ~ /(ebooks|drafts|opds|fonts)/>
|
||||||
Header set Access-Control-Allow-Origin "*"
|
Header set Access-Control-Allow-Origin "*"
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue