mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-11 06:36:31 +00:00
Set Access-Control-Allow-Origin * on feeds
This enables client-side only web readers like Airss to work.
This commit is contained in:
parent
91022aa5da
commit
3700b3a9ac
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ function respondWithFeed(feed, kind, maxAge, available) {
|
|||
}
|
||||
}
|
||||
const headers = {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Cache-Control": `public, max-age=${maxAge}`
|
||||
}
|
||||
if (!available) headers["X-Bibliogram-Feed-Unavailable"] = 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue